refactor(BUG 538): 调整字典数据加载时机
- 移除 add.vue 中的 created 钩子中的字典加载逻辑 - 在 AppWeightManage.vue 中添加 created 钩子,统一处理字典加载
This commit is contained in:
		| @@ -16,9 +16,9 @@ export default { | ||||
|       return hash == "#add" ? add : list | ||||
|     } | ||||
|   }, | ||||
|   data() { | ||||
|     return {} | ||||
|   } | ||||
|   created() { | ||||
|     this.dict.load( "yesOrNo", "category", "variety", "dataSources") | ||||
|   }, | ||||
| } | ||||
| </script> | ||||
|  | ||||
|   | ||||
| @@ -72,7 +72,6 @@ export default { | ||||
|     } | ||||
|   }, | ||||
|   created() { | ||||
|     this.dict.load("yesOrNo", "category", "variety", "dataSources") | ||||
|     this.getDetail() | ||||
|   } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user