admin manage page update
This commit is contained in:
@@ -6,6 +6,10 @@ module.exports = defineConfig({
|
||||
client: {
|
||||
overlay: false // 编译错误时,取消全屏覆盖
|
||||
},
|
||||
open: true, //配置自动启动浏览器
|
||||
host: "localhost",
|
||||
https: false,
|
||||
port: 8081,
|
||||
proxy: {
|
||||
|
||||
'/api': {
|
||||
@@ -24,6 +28,22 @@ module.exports = defineConfig({
|
||||
'^/api': ''
|
||||
}
|
||||
},
|
||||
'/dev': {
|
||||
//后端接口的baseurl
|
||||
target: 'http://localhost:8080',
|
||||
//是否允许跨域
|
||||
changeOrigin: true,
|
||||
// ws: true, //是否代理 websockets
|
||||
// secure: true,
|
||||
// 'secure': true,
|
||||
headers: {
|
||||
Connection: "kepp-alive"
|
||||
},
|
||||
pathRewrite: {
|
||||
//这里的作用是使用去掉api
|
||||
'^/dev': ''
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user