refactor(BUG 538): 调整字典数据加载时机

- 移除 add.vue 中的 created 钩子中的字典加载逻辑
- 在 AppWeightManage.vue 中添加 created 钩子,统一处理字典加载
This commit is contained in:
aixianling
2025-01-14 11:26:01 +08:00
parent cbfd68f50c
commit 0ef83a945f
2 changed files with 3 additions and 4 deletions

View File

@@ -16,9 +16,9 @@ export default {
return hash == "#add" ? add : list return hash == "#add" ? add : list
} }
}, },
data() { created() {
return {} this.dict.load( "yesOrNo", "category", "variety", "dataSources")
} },
} }
</script> </script>

View File

@@ -72,7 +72,6 @@ export default {
} }
}, },
created() { created() {
this.dict.load("yesOrNo", "category", "variety", "dataSources")
this.getDetail() this.getDetail()
} }
} }