|
|
@@ -23,23 +23,23 @@ export default defineConfig({
|
|
|
// 是否开启 https
|
|
|
// https: false,
|
|
|
// 线上地址
|
|
|
- // proxy: {
|
|
|
- // "/carstop/carbook": {
|
|
|
- // target: "https://chtech.ncjti.edu.cn/carstop/carbook",
|
|
|
- // changeOrigin: true,
|
|
|
- // rewrite: (path) => path.replace(/^\/carstop\/carbook/, ""),
|
|
|
- // },
|
|
|
- // },
|
|
|
-
|
|
|
- // 测试地址
|
|
|
proxy: {
|
|
|
- "/testingServertomcat/carbook": {
|
|
|
- target: "https://chtech.ncjti.edu.cn/testingServertomcat/carbook", // 测试环境
|
|
|
- // target: "https://jtishfw.ncjti.edu.cn/jxch-smartmp/carbook", // 测试环境
|
|
|
+ "/carstop/carbook": {
|
|
|
+ target: "https://chtech.ncjti.edu.cn/carstop/carbook",
|
|
|
changeOrigin: true,
|
|
|
- rewrite: (path) => path.replace(/^\/testingServertomcat\/carbook/, ""),
|
|
|
+ rewrite: (path) => path.replace(/^\/carstop\/carbook/, ""),
|
|
|
},
|
|
|
},
|
|
|
+
|
|
|
+ // 测试地址
|
|
|
+ // proxy: {
|
|
|
+ // "/testingServertomcat/carbook": {
|
|
|
+ // target: "https://chtech.ncjti.edu.cn/testingServertomcat/carbook", // 测试环境
|
|
|
+ // // target: "https://jtishfw.ncjti.edu.cn/jxch-smartmp/carbook", // 测试环境
|
|
|
+ // changeOrigin: true,
|
|
|
+ // rewrite: (path) => path.replace(/^\/testingServertomcat\/carbook/, ""),
|
|
|
+ // },
|
|
|
+ // },
|
|
|
},
|
|
|
publicDir: "public",
|
|
|
base: "./",
|