Commit ba1f6b7db56ae3d291fc0a65e6fedc365bf32cc6

Authored by fengwotao
2 parents 6609c454 987fffa0

Merge branch 'main_dev' into ft

... ... @@ -8,12 +8,10 @@ VITE_GLOB_PUBLIC_PATH = /
8 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 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 16 # Delete console
19 17 VITE_GLOB_DROP_CONSOLE = true
... ...
... ... @@ -16,11 +16,11 @@ VITE_GLOB_BUILD_COMPRESS = 'gzip'
16 16 VITE_GLOB_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
17 17
18 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 21 # File upload address, optional
22 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 25 # Interface prefix
26 26 VITE_GLOB_API_URL_PREFIX=/yt
... ... @@ -35,7 +35,7 @@ VITE_USE_PWA = false
35 35 VITE_LEGACY = true
36 36
37 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 40 #configuration
41 41 VITE_GLOB_CONFIGURATION = /thingskit-scada
... ...
... ... @@ -17,7 +17,6 @@
17 17 icon="ion:document-text-outline"
18 18 />
19 19 <MenuItem
20   - v-if="hasPermission('system:password:view')"
21 20 key="changePassword"
22 21 :text="t('layout.header.dropdownItemChangePassword')"
23 22 icon="ant-design:unlock-twotone"
... ...
... ... @@ -91,9 +91,11 @@
91 91 },
92 92 ];
93 93 });
94   -
95 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 99 return {
98 100 menus,
99 101 beforeClickFn: beforeMenuClickFn,
... ...