Showing
2 changed files
with
0 additions
and
10 deletions
... | ... | @@ -113,7 +113,6 @@ |
113 | 113 | import { useDate } from '../hooks/useDate'; |
114 | 114 | import { getTrendData } from '/@/api/dashboard'; |
115 | 115 | import { useGlobSetting } from '/@/hooks/setting'; |
116 | - import { getEntitiesId } from '/@/api/dashboard/index'; | |
117 | 116 | |
118 | 117 | defineExpose({ |
119 | 118 | isAdmin, |
... | ... | @@ -161,10 +160,6 @@ |
161 | 160 | if (isAdmin(props.role)) return; |
162 | 161 | let content = JSON.parse(window.localStorage.getItem('entityId')); |
163 | 162 | entityId = content; |
164 | - if (entityId == null) { | |
165 | - const res = await getEntitiesId(); | |
166 | - entityId = res.data[0]?.entityId; | |
167 | - } | |
168 | 163 | const sendValue = JSON.stringify({ |
169 | 164 | entityDataCmds: [ |
170 | 165 | { | ... | ... |
... | ... | @@ -112,7 +112,6 @@ |
112 | 112 | import { useDate } from '../hooks/useDate'; |
113 | 113 | import { getTrendData } from '/@/api/dashboard'; |
114 | 114 | import { useGlobSetting } from '/@/hooks/setting'; |
115 | - import { getEntitiesId } from '/@/api/dashboard/index'; | |
116 | 115 | |
117 | 116 | defineExpose({ |
118 | 117 | isAdmin, |
... | ... | @@ -160,10 +159,6 @@ |
160 | 159 | if (isAdmin(props.role)) return; |
161 | 160 | let content = JSON.parse(window.localStorage.getItem('entityId')); |
162 | 161 | entityId = content; |
163 | - if (entityId == null) { | |
164 | - const res = await getEntitiesId(); | |
165 | - entityId = res.data[0]?.entityId; | |
166 | - } | |
167 | 162 | const sendValue = JSON.stringify({ |
168 | 163 | entityDataCmds: [ |
169 | 164 | { | ... | ... |