@gary-yez/go-admin-web 1.0.2 → 1.0.4
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/App.vue +0 -3
- package/src/assets/css/global.less +0 -21
- package/src/assets/css/theme.less +0 -2
- package/src/components/FormDialog.vue +0 -5
- package/src/components/MenuItem.vue +0 -4
- package/src/utils/request.ts +7 -1
- package/src/views/sys_cron_job/logs.vue +0 -3
- package/src/views/sys_devtools/autocode.vue +4 -4
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -17,7 +17,6 @@ body{
|
|
|
17
17
|
position: relative;
|
|
18
18
|
width: 100%;
|
|
19
19
|
max-width: 100%;
|
|
20
|
-
//height: 100%;
|
|
21
20
|
&.el-card{
|
|
22
21
|
border: none;
|
|
23
22
|
}
|
|
@@ -41,26 +40,6 @@ body{
|
|
|
41
40
|
background-color: #D0D0D0;
|
|
42
41
|
-webkit-border-radius: 3px;
|
|
43
42
|
}
|
|
44
|
-
::-webkit-scrollbar-thumb:vertical:hover,::-webkit-scrollbar-thumb:horizontal:hover{
|
|
45
|
-
background-color: #D0D0D0;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/* fade */
|
|
49
|
-
.fade-leave-active,
|
|
50
|
-
.fade-enter-active {
|
|
51
|
-
transition: opacity .5s, transform .5s;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.fade-enter-from {
|
|
55
|
-
opacity: 0;
|
|
56
|
-
transform: translateX(-30px);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.fade-leave-to {
|
|
60
|
-
opacity: 0;
|
|
61
|
-
transform: translateX(30px);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
43
|
|
|
65
44
|
.table-btn-group{
|
|
66
45
|
display: flex;
|
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
--el-color-primary: #005eeb;
|
|
3
3
|
--main-bg-color:#fff;
|
|
4
4
|
--main-bg-light-color:#f5f7fa;
|
|
5
|
-
--main-text-color:#334155;
|
|
6
5
|
}
|
|
7
6
|
|
|
8
7
|
html.dark{
|
|
9
8
|
color-scheme: dark;
|
|
10
9
|
--main-bg-light-color: #272f3b;
|
|
11
10
|
--main-bg-color: #303a48;
|
|
12
|
-
--main-text-color: #edf2f8;
|
|
13
11
|
|
|
14
12
|
--el-bg-color-page: var(--main-bg-light-color);
|
|
15
13
|
--el-bg-color: var(--main-bg-color);
|
package/src/utils/request.ts
CHANGED
|
@@ -6,7 +6,13 @@ declare module "axios" {
|
|
|
6
6
|
interface InternalAxiosRequestConfig { sessionToken?:string }
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// 热更新会重建请求模块;保留宿主启动时设置的 API 地址等默认配置。
|
|
10
|
+
const request = axios.create(import.meta.hot?.data.requestDefaults)
|
|
11
|
+
if (import.meta.hot) {
|
|
12
|
+
import.meta.hot.dispose(data => {
|
|
13
|
+
data.requestDefaults = request.defaults
|
|
14
|
+
})
|
|
15
|
+
}
|
|
10
16
|
|
|
11
17
|
// 这些入口不依赖登录,开发工具的环境限制由后端负责。
|
|
12
18
|
const anonymousPaths = new Set([
|
|
@@ -151,10 +151,10 @@
|
|
|
151
151
|
<el-table-column label="索引类型" :width="130">
|
|
152
152
|
<template #default="{ row,$index }">
|
|
153
153
|
<el-form-item :prop="`${row.id < 0 ? 'builtin_fields' : 'fields'}.${row.id < 0 ? $index : $index - 3}.index_type`">
|
|
154
|
-
<el-select :disabled="row.id < 0" v-model="row.index_type" placeholder="
|
|
155
|
-
<el-option label="
|
|
156
|
-
<el-option label="
|
|
157
|
-
<el-option label="
|
|
154
|
+
<el-select :disabled="row.id < 0" v-model="row.index_type" placeholder="无索引" clearable>
|
|
155
|
+
<el-option label="普通索引" value="index"></el-option>
|
|
156
|
+
<el-option label="唯一索引" value="uniqueIndex"></el-option>
|
|
157
|
+
<el-option v-if="row.index_type === 'unique'" label="唯一约束" value="unique"></el-option>
|
|
158
158
|
</el-select>
|
|
159
159
|
</el-form-item>
|
|
160
160
|
</template>
|