From 0ef83a945f79dc78bb58d69926cd20ac10807a97 Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 14 Jan 2025 11:26:01 +0800 Subject: [PATCH] =?UTF-8?q?refactor(BUG=20538):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E5=AD=97=E5=85=B8=E6=95=B0=E6=8D=AE=E5=8A=A0=E8=BD=BD=E6=97=B6?= =?UTF-8?q?=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 add.vue 中的 created 钩子中的字典加载逻辑 - 在 AppWeightManage.vue 中添加 created 钩子,统一处理字典加载 --- project/xumu/AppWeightManage/AppWeightManage.vue | 6 +++--- project/xumu/AppWeightManage/add.vue | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/project/xumu/AppWeightManage/AppWeightManage.vue b/project/xumu/AppWeightManage/AppWeightManage.vue index 2f789a4e..a7483fe6 100644 --- a/project/xumu/AppWeightManage/AppWeightManage.vue +++ b/project/xumu/AppWeightManage/AppWeightManage.vue @@ -16,9 +16,9 @@ export default { return hash == "#add" ? add : list } }, - data() { - return {} - } + created() { + this.dict.load( "yesOrNo", "category", "variety", "dataSources") + }, } diff --git a/project/xumu/AppWeightManage/add.vue b/project/xumu/AppWeightManage/add.vue index b755a0d1..536b5250 100644 --- a/project/xumu/AppWeightManage/add.vue +++ b/project/xumu/AppWeightManage/add.vue @@ -72,7 +72,6 @@ export default { } }, created() { - this.dict.load("yesOrNo", "category", "variety", "dataSources") this.getDetail() } }