删除return

This commit is contained in:
zhujiyan
2024-08-06 15:01:11 +08:00
parent 5a6951a866
commit 6a6239c488
3 changed files with 8 additions and 26 deletions

View File

@@ -8,14 +8,22 @@ const nodeResolve = (dir: string) => path.resolve(__dirname, '.', dir)
export default defineConfig({
plugins: [vue(), vueJsx()],
server: {
host: '0.0.0.0',
open: true,
proxy: {
'/api': {
// target: 'http://192.168.1.81:10215', //数据中心
// target: 'http://192.168.1.24:10215', //
// target: 'http://192.168.1.122:10215', //gfh
// target: 'http://192.168.1.127:10215', //cdf
// target: 'http://192.168.1.125:10215',
target: 'https://pqmcn.com:8092/api', //治理
// target:'http://www.zhilitest.com:8089/api',
changeOrigin: true,
rewrite: path => path.replace(/^\/api/, '') //路径重写,把'/api'替换为''
}
}
// port:'3000'
},
resolve: {