From 5fb65ada8ccc28eabf823b284de70fbd3ca1f41e Mon Sep 17 00:00:00 2001 From: ZZJ <zzjdsg2300@163.com> Date: 星期二, 28 九月 2021 18:29:36 +0800 Subject: [PATCH] 抓拍大图层级修复v1 --- vue.config.js | 48 +++++++++++++++++++++++++++++------------------- 1 files changed, 29 insertions(+), 19 deletions(-) diff --git a/vue.config.js b/vue.config.js index 975e666..9710019 100644 --- a/vue.config.js +++ b/vue.config.js @@ -39,6 +39,10 @@ // enforce: true // } }) + +// const serverUrl = "http://58.118.225.79:41243" // 缇婁簲 +const serverUrl = "http://192.168.20.189:7009" + module.exports = { pages, chainWebpack: config => { @@ -73,54 +77,60 @@ devServer: { proxy: { '/track': { - target: 'http://192.168.20.10:8000', + target: serverUrl, // ws: true, changeOrigin: true, }, '/ws': { - target: 'http://192.168.20.10:7003', + target: serverUrl, // ws: true, changeOrigin: true, }, - // "/data/api-v/app/findAllApp": { - // // target: '/', - // target: 'http://localhost:8080/', - // changeOrigin: true, - // pathRewrite: { - // '^/data/api-v/app/findAllApp': 'apps.json' - // } - // }, + "/data/api-v/app/findAllApp": { + // target: '/', + target: 'http://localhost:8080/', + changeOrigin: true, + pathRewrite: { + '^/data/api-v/app/findAllApp': 'apps.json' + } + }, "/api-c": { - target: 'http://192.168.20.113:8004', + target: serverUrl, changeOrigin: true }, "/api-v": { - target: 'http://192.168.20.10:8000', + target: serverUrl, changeOrigin: true }, "/api-f": { - target: 'http://192.168.20.10:8011', + target: serverUrl, // secure: false, changeOrigin: true }, "/api-p": { - target: 'http://192.168.5.23:8010', + target: serverUrl, // secure: false, changeOrigin: true }, "/api-u": { - target: 'http://192.168.20.10:8000', + target: serverUrl, changeOrigin: true }, "/httpImage": { - target: 'http://192.168.20.10:7003', + target: serverUrl, changeOrigin: true, //寮�鍚唬鐞� }, "/files": { - target: 'http://192.168.20.10:7003', + target: serverUrl, changeOrigin: true, //寮�鍚唬鐞� } } - } + }, + /* css:{ + loaderOptions:{ + scss:{ + prependData:`@import"@/assets/css/globalVariable.scss"` + } + } + } */ } -// http://111.205.161.131:40143/ \ No newline at end of file -- Gitblit v1.8.0