solve nav active bug

This commit is contained in:
2023-12-21 00:43:43 +08:00
parent c0a044355b
commit 89aa365af9
8 changed files with 50 additions and 61 deletions

View File

@@ -10,7 +10,7 @@ module.exports = defineConfig({
'/api': {
//后端接口的baseurl
target: 'http://localhost:8082/helloGithub_war_exploded',
target: 'https://open.tophub.today/daily',
//是否允许跨域
changeOrigin: true,
// ws: true, //是否代理 websockets
@@ -24,22 +24,6 @@ module.exports = defineConfig({
'^/api': ''
}
},
'/image': {
//后端接口的baseurl
target: 'https://tucdn.wpon.cn/api/',
//是否允许跨域
changeOrigin: true,
// ws: true, //是否代理 websockets
// secure: true,
// 'secure': true,
headers: {
Connection: "kepp-alive"
},
pathRewrite: {
//这里的作用是使用去掉api
'^/image': ''
}
},
}
}
})