Showing
4 changed files
with
9 additions
and
10 deletions
@@ -8,12 +8,10 @@ VITE_GLOB_PUBLIC_PATH = / | @@ -8,12 +8,10 @@ VITE_GLOB_PUBLIC_PATH = / | ||
8 | # Please note that no line breaks | 8 | # Please note that no line breaks |
9 | 9 | ||
10 | # 本地 | 10 | # 本地 |
11 | -VITE_PROXY = [["/api","http://222.180.200.114:48080/api"],["/thingskit-scada","http://localhost:3000/"],["/large-designer", "http://localhost:5555/large-designer/"]] | ||
12 | -# VITE_PROXY = [["/api","http://192.168.10.112:8080/api"],["/thingskit-scada","http://localhost:3000/"],["/large-designer", "http://localhost:5555/large-designer/"]] | 11 | +VITE_PROXY = [["/api","http://localhost:8080/api"],["/thingskit-scada","http://localhost:3000/"],["/large-designer", "http://localhost:5555/large-designer/"]] |
13 | 12 | ||
14 | # 实时数据的ws地址 | 13 | # 实时数据的ws地址 |
15 | -VITE_GLOB_WEB_SOCKET = ws://222.180.200.114:48080/api/ws/plugins/telemetry?token= | ||
16 | -# VITE_GLOB_WEB_SOCKET = ws://192.168.10.112:48080/api/ws/plugins/telemetry?token= | 14 | +VITE_GLOB_WEB_SOCKET = ws://localhost:8080/api/ws/plugins/telemetry?token= |
17 | 15 | ||
18 | # Delete console | 16 | # Delete console |
19 | VITE_GLOB_DROP_CONSOLE = true | 17 | VITE_GLOB_DROP_CONSOLE = true |
@@ -16,11 +16,11 @@ VITE_GLOB_BUILD_COMPRESS = 'gzip' | @@ -16,11 +16,11 @@ VITE_GLOB_BUILD_COMPRESS = 'gzip' | ||
16 | VITE_GLOB_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false | 16 | VITE_GLOB_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false |
17 | 17 | ||
18 | # Basic interface address SPA | 18 | # Basic interface address SPA |
19 | -VITE_GLOB_API_URL=http://122.9.141.195:8080/api | 19 | +VITE_GLOB_API_URL=http://localhost:8080/api |
20 | 20 | ||
21 | # File upload address, optional | 21 | # File upload address, optional |
22 | # It can be forwarded by nginx or write the actual address directly | 22 | # It can be forwarded by nginx or write the actual address directly |
23 | -VITE_GLOB_UPLOAD_URL=http://122.9.141.195:8080/api/yt/oss/upload | 23 | +VITE_GLOB_UPLOAD_URL=http://localhost:8080/api/yt/oss/upload |
24 | 24 | ||
25 | # Interface prefix | 25 | # Interface prefix |
26 | VITE_GLOB_API_URL_PREFIX=/yt | 26 | VITE_GLOB_API_URL_PREFIX=/yt |
@@ -35,7 +35,7 @@ VITE_USE_PWA = false | @@ -35,7 +35,7 @@ VITE_USE_PWA = false | ||
35 | VITE_LEGACY = true | 35 | VITE_LEGACY = true |
36 | 36 | ||
37 | # 实时数据的ws地址 | 37 | # 实时数据的ws地址 |
38 | -VITE_GLOB_WEB_SOCKET = ws://122.9.141.195:8080/api/ws/plugins/telemetry?token= | 38 | +VITE_GLOB_WEB_SOCKET = ws://localhost:8080/api/ws/plugins/telemetry?token= |
39 | 39 | ||
40 | #configuration | 40 | #configuration |
41 | VITE_GLOB_CONFIGURATION = /thingskit-scada | 41 | VITE_GLOB_CONFIGURATION = /thingskit-scada |
@@ -17,7 +17,6 @@ | @@ -17,7 +17,6 @@ | ||
17 | icon="ion:document-text-outline" | 17 | icon="ion:document-text-outline" |
18 | /> | 18 | /> |
19 | <MenuItem | 19 | <MenuItem |
20 | - v-if="hasPermission('system:password:view')" | ||
21 | key="changePassword" | 20 | key="changePassword" |
22 | :text="t('layout.header.dropdownItemChangePassword')" | 21 | :text="t('layout.header.dropdownItemChangePassword')" |
23 | icon="ant-design:unlock-twotone" | 22 | icon="ant-design:unlock-twotone" |
@@ -91,9 +91,11 @@ | @@ -91,9 +91,11 @@ | ||
91 | }, | 91 | }, |
92 | ]; | 92 | ]; |
93 | }); | 93 | }); |
94 | - | ||
95 | const getCommonProps = computed(() => { | 94 | const getCommonProps = computed(() => { |
96 | - const menus = unref(menusRef); | 95 | + let menus = unref(menusRef); |
96 | + // 子菜单都隐藏后 目录隐藏 | ||
97 | + menus = menus.filter((item) => !item.children?.every((temp) => temp.hideMenu)); | ||
98 | + | ||
97 | return { | 99 | return { |
98 | menus, | 100 | menus, |
99 | beforeClickFn: beforeMenuClickFn, | 101 | beforeClickFn: beforeMenuClickFn, |