|
|
@@ -23,26 +23,26 @@ export default defineConfig({
|
|
|
// 是否开启 https
|
|
|
// https: false,
|
|
|
// 测试地址
|
|
|
- proxy: {
|
|
|
- "/testingServer/repairTest/repair/api": {
|
|
|
- target:
|
|
|
- "https://chtech.ncjti.edu.cn/testingServer/repairTest/repair/api",
|
|
|
- changeOrigin: true,
|
|
|
- rewrite: (path) =>
|
|
|
- path.replace(/^\/testingServer\/repairTest\/repair\/api/, ""),
|
|
|
- },
|
|
|
- },
|
|
|
-
|
|
|
- // 在线地址
|
|
|
// proxy: {
|
|
|
- // "/campusMaintenance/repair-api/repair/api": {
|
|
|
+ // "/testingServer/repairTest/repair/api": {
|
|
|
// target:
|
|
|
- // "https://chtech.ncjti.edu.cn/campusMaintenance/repair-api/repair/api",
|
|
|
+ // "https://chtech.ncjti.edu.cn/testingServer/repairTest/repair/api",
|
|
|
// changeOrigin: true,
|
|
|
// rewrite: (path) =>
|
|
|
- // path.replace(/^\/campusMaintenance\/repair-api\/repair\/api/, ""),
|
|
|
+ // path.replace(/^\/testingServer\/repairTest\/repair\/api/, ""),
|
|
|
// },
|
|
|
// },
|
|
|
+
|
|
|
+ // 在线地址
|
|
|
+ proxy: {
|
|
|
+ "/campusMaintenance/repair-api/repair/api": {
|
|
|
+ target:
|
|
|
+ "https://chtech.ncjti.edu.cn/campusMaintenance/repair-api/repair/api",
|
|
|
+ changeOrigin: true,
|
|
|
+ rewrite: (path) =>
|
|
|
+ path.replace(/^\/campusMaintenance\/repair-api\/repair\/api/, ""),
|
|
|
+ },
|
|
|
+ },
|
|
|
// wxl 服务器
|
|
|
// proxy: {
|
|
|
// "/repair/api/": {
|