diff --git a/.env b/.env new file mode 100644 index 0000000..c2e7762 --- /dev/null +++ b/.env @@ -0,0 +1,2 @@ +VUE_APP_CLIENT_ADDRESS = 'http://t-app.beida413.com/#/' +VUE_APP_APP_ADDRESS = 'http://t-app.beida413.com/#/' \ No newline at end of file diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue index 2f460be..5e74c74 100644 --- a/src/layout/components/Sidebar/index.vue +++ b/src/layout/components/Sidebar/index.vue @@ -1,20 +1,26 @@ @@ -1379,8 +1379,8 @@ export default { }).then((res) => { if (res.code == 200) { const href = - process.env.VUE_APP_ADDRESS1 + - 'freeLogin?token=' + + process.env.VUE_APP_CLIENT_ADDRESS + + '?token=' + res.data.access_token window.open(href, '_blank') } @@ -1392,7 +1392,7 @@ export default { if (res.code == 200) { const href = process.env.VUE_APP_ADDRESS + - 'freeLogin?token=' + + '?token=' + res.data.access_token window.open(href, '_blank') } diff --git a/vue.config.js b/vue.config.js index 61345ef..b6559a2 100644 --- a/vue.config.js +++ b/vue.config.js @@ -44,11 +44,11 @@ module.exports = { }, proxy: { '/prod-api': { - target: 'http://192.168.0.104:8080/', - changeOrigin: true, - pathRewrite: { - '^/prod-api': '' - } + target: 'http://t-mana.beida413.com', + changeOrigin: true + // pathRewrite: { + // '^/prod-api': '' + // } } } // before: require('./mock/mock-server.js')