|
@@ -11,9 +11,9 @@ export default defineConfig({
|
|
|
proxy: {
|
|
proxy: {
|
|
|
'/welcome/welcome_api/': {
|
|
'/welcome/welcome_api/': {
|
|
|
// 线上地址
|
|
// 线上地址
|
|
|
- // target: 'https://chtech.ncjti.edu.cn/welcome/welcome_api/',
|
|
|
|
|
|
|
+ target: 'https://chtech.ncjti.edu.cn/welcome/welcome_api/',
|
|
|
// 本地地址
|
|
// 本地地址
|
|
|
- target: 'http://192.168.161.221:8080',
|
|
|
|
|
|
|
+ // target: 'http://192.168.161.221:8080',
|
|
|
changeOrigin: true,
|
|
changeOrigin: true,
|
|
|
rewrite: path => path.replace(/^\/welcome\/welcome_api/, ''),
|
|
rewrite: path => path.replace(/^\/welcome\/welcome_api/, ''),
|
|
|
}
|
|
}
|