@gary-yez/go-admin-web 1.0.2 → 1.0.3

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": "@gary-yez/go-admin-web",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "go-admin 公共管理端:系统页面、布局、请求封装和业务组件",
5
5
  "type": "module",
6
6
  "files": [
package/src/App.vue CHANGED
@@ -26,6 +26,3 @@ watch(() => [siteStore.info.title, siteStore.info.name, siteStore.info.favicon],
26
26
  import zhCn from 'element-plus/es/locale/lang/zh-cn'
27
27
 
28
28
  </script>
29
-
30
- <style scoped>
31
- </style>
@@ -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);
@@ -95,8 +95,3 @@ const handleConfirm = async () => {
95
95
  }
96
96
  }
97
97
  </script>
98
-
99
-
100
- <style scoped lang="less">
101
-
102
- </style>
@@ -37,7 +37,3 @@ const BuildMenuPath = (menu:any) => {
37
37
  return props.prefix + "/" + menu.path
38
38
  }
39
39
  </script>
40
-
41
- <style scoped>
42
-
43
- </style>
@@ -6,7 +6,13 @@ declare module "axios" {
6
6
  interface InternalAxiosRequestConfig { sessionToken?:string }
7
7
  }
8
8
 
9
- const request = axios.create()
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([
@@ -123,6 +123,3 @@ const getPageData = async () => {
123
123
  },
124
124
  })
125
125
  </script>
126
-
127
- <style scoped lang="less">
128
- </style>