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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cmpt-huitu-cli",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "type": "module",
5
5
  "description": "慧图前端项目工程化 CLI 工具",
6
6
  "main": "index.js",
package/src/versions.js CHANGED
@@ -15,8 +15,8 @@
15
15
  * - 例如:^1.0.8 允许 1.0.8, 1.1.0 但不允许 2.0.0
16
16
  */
17
17
  export const DEPENDENCY_VERSIONS = {
18
- 'cmpt-huitu-ui': '^1.0.16',
19
- 'cmpt-huitu-utils': '^2.0.1',
18
+ 'cmpt-huitu-ui': '^1.0.18',
19
+ 'cmpt-huitu-utils': '^2.0.2',
20
20
  }
21
21
 
22
22
  /**
@@ -113,7 +113,7 @@
113
113
  │ │ ├── errorCode.js # 错误码定义
114
114
  │ │ ├── index.js # 工具函数入口
115
115
  │ │ ├── requestAxios.js # Axios 封装
116
- │ │ ├── RequestCache.js # 请求缓存
116
+ │ │ ├── requestCache.js # 请求缓存
117
117
  │ │ └── theme.js # 主题切换工具
118
118
  │ │
119
119
  │ ├── views/ # 页面视图目录
@@ -117,7 +117,7 @@ trigger: always_on
117
117
  │ │ ├── errorCode.js # 错误码定义
118
118
  │ │ ├── index.js # 工具函数入口
119
119
  │ │ ├── requestAxios.js # Axios 封装
120
- │ │ ├── RequestCache.js # 请求缓存
120
+ │ │ ├── requestCache.js # 请求缓存
121
121
  │ │ └── theme.js # 主题切换工具
122
122
  │ │
123
123
  │ ├── views/ # 页面视图目录
@@ -113,7 +113,7 @@
113
113
  │ │ ├── errorCode.js # 错误码定义
114
114
  │ │ ├── index.js # 工具函数入口
115
115
  │ │ ├── requestAxios.js # Axios 封装
116
- │ │ ├── RequestCache.js # 请求缓存
116
+ │ │ ├── requestCache.js # 请求缓存
117
117
  │ │ └── theme.js # 主题切换工具
118
118
  │ │
119
119
  │ ├── 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>
@@ -1,4 +1,4 @@
1
- import { cache } from '@utils/RequestCache.js'
1
+ import { cache } from '@utils/requestCache.js'
2
2
  const _BaseUrl = 'login/'
3
3
 
4
4
  // 通用登录接口
@@ -31,6 +31,7 @@ body {
31
31
  background-color: var(--bg-color);
32
32
  min-height: 100vh;
33
33
  transition: background-color 0.3s ease;
34
+ overflow: auto;
34
35
  }
35
36
 
36
37
  // 项目自定义样式
@@ -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
- // 示例:API 代理配置
60
+ // API 代理配置 - 代理到测试服务器
61
61
  '/api': {
62
- target: 'http://localhost:8080',
62
+ target: 'http://qa.saas-dev.huitucloud.com.cn',
63
63
  changeOrigin: true,
64
- rewrite: (path) => path.replace(/^\/api/, ''),
64
+ // 不重写路径,保持 /api 前缀
65
+ // rewrite: (path) => path.replace(/^\/api/, ''),
65
66
  },
66
67
  },
67
68
  // 当路由模式是history模式时,且多页面时候 server需要特别配置,防止404