cmpt-huitu-cli 1.0.14 → 1.0.16
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 +2 -2
- package/templates/default/.lingma/rules/project-rules.md +1 -1
- package/templates/default/.qoder/rules/project-rules.md +1 -1
- package/templates/default/.trae/rules/project-rules.md +1 -1
- package/templates/default/src/app.vue +2 -2
- package/templates/default/src/services/login.js +1 -1
- package/templates/default/src/styles/index.scss +1 -0
- package/templates/default/src/views/home.vue +6 -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
|
@@ -117,7 +117,7 @@ trigger: always_on
|
|
|
117
117
|
│ │ ├── errorCode.js # 错误码定义
|
|
118
118
|
│ │ ├── index.js # 工具函数入口
|
|
119
119
|
│ │ ├── requestAxios.js # Axios 封装
|
|
120
|
-
│ │ ├──
|
|
120
|
+
│ │ ├── requestCache.js # 请求缓存
|
|
121
121
|
│ │ └── theme.js # 主题切换工具
|
|
122
122
|
│ │
|
|
123
123
|
│ ├── views/ # 页面视图目录
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div id="app">
|
|
2
|
+
<div id="app-container">
|
|
3
3
|
<router-view v-slot="{ Component, route }">
|
|
4
4
|
<keep-alive>
|
|
5
5
|
<component
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<script setup></script>
|
|
21
21
|
|
|
22
22
|
<style lang="scss">
|
|
23
|
-
#app {
|
|
23
|
+
#app-container {
|
|
24
24
|
touch-action: none;
|
|
25
25
|
}
|
|
26
26
|
</style>
|
|
@@ -77,6 +77,7 @@
|
|
|
77
77
|
caption="测试拖拽弹窗"
|
|
78
78
|
:w="500"
|
|
79
79
|
:h="400"
|
|
80
|
+
:z="1000"
|
|
80
81
|
:min-width="300"
|
|
81
82
|
:min-height="200"
|
|
82
83
|
>
|
|
@@ -259,4 +260,9 @@
|
|
|
259
260
|
width: 100%;
|
|
260
261
|
height: 100%;
|
|
261
262
|
}
|
|
263
|
+
.tableBox {
|
|
264
|
+
width: 100%;
|
|
265
|
+
height: 120px;
|
|
266
|
+
margin-bottom: 30px;
|
|
267
|
+
}
|
|
262
268
|
</style>
|
|
@@ -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
|