diff --git a/sgzb-screen/config/index.js b/sgzb-screen/config/index.js index 504ab0d3..343fc9f9 100644 --- a/sgzb-screen/config/index.js +++ b/sgzb-screen/config/index.js @@ -21,7 +21,7 @@ var proxyUrl = (module.exports = { // target: 'http://112.29.103.165:21626',//重庆 // target: 'http://192.168.0.14:21624',//测试 // target: 'http://112.29.103.165:21624/', //宁夏 - target: 'http://192.168.2.136:28080', + target: 'http://192.168.2.127:28080', changeOrigin: true, // secure: true, //如果是https接口,需要配置这个参数 pathRewrite: { diff --git a/sgzb-screen/src/App.vue b/sgzb-screen/src/App.vue index b35597cf..e5348d40 100644 --- a/sgzb-screen/src/App.vue +++ b/sgzb-screen/src/App.vue @@ -26,6 +26,18 @@ export default { resize: true, }) }, + + watch: { + $route: { + handler(newValue) { + console.log(newValue, '路由监听--') + if (newValue.query.token) { + localStorage.setItem('token', newValue.query.token) + } + }, + deep: true, + }, + }, }