修改加载监测点接口逻辑
This commit is contained in:
@@ -102,11 +102,10 @@ const loadSvg = async () => {
|
||||
})
|
||||
}
|
||||
|
||||
const initTasks: Promise<unknown>[] = [getSvg()]
|
||||
if (params.get('graphicDisplay') === 'ypt') {
|
||||
initTasks.push(loadYptChooseTree())
|
||||
loadYptChooseTree()
|
||||
}
|
||||
await Promise.all(initTasks)
|
||||
await getSvg()
|
||||
await useData.set('loading', false)
|
||||
|
||||
// const electrical_modules_files = import.meta.glob('@/assets/svgs/electrical/face/**.svg', {
|
||||
|
||||
Reference in New Issue
Block a user