cmpt-huitu-cli 1.0.14 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/versions.js +1 -1
- package/templates/default/.trae/rules/project-rules.md +1 -1
- package/templates/default/src/services/login.js +1 -1
- package/templates/default/src/views/home.vue +5 -0
- package/templates/default/vite.config.js +4 -3
- /package/templates/default/src/utils/{RequestCache.js → requestCache.js} +0 -0
package/package.json
CHANGED
package/src/versions.js
CHANGED
|
@@ -57,11 +57,12 @@ export default defineConfig(({ mode, command }) => {
|
|
|
57
57
|
target: 'ws://localhost:5174',
|
|
58
58
|
ws: true,
|
|
59
59
|
},
|
|
60
|
-
//
|
|
60
|
+
// API 代理配置 - 代理到测试服务器
|
|
61
61
|
'/api': {
|
|
62
|
-
target: 'http://
|
|
62
|
+
target: 'http://qa.saas-dev.huitucloud.com.cn',
|
|
63
63
|
changeOrigin: true,
|
|
64
|
-
|
|
64
|
+
// 不重写路径,保持 /api 前缀
|
|
65
|
+
// rewrite: (path) => path.replace(/^\/api/, ''),
|
|
65
66
|
},
|
|
66
67
|
},
|
|
67
68
|
// 当路由模式是history模式时,且多页面时候 server需要特别配置,防止404
|
|
File without changes
|