From d532dc6fc081776d7ec8fa9e8e5e28b034da8ceb Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期四, 20 七月 2023 22:36:06 +0800 Subject: [PATCH] !30 【轻量级 PR】修改验证码路径适配 cloud Merge pull request !30 from MichelleChung/ts --- src/views/system/dict/index.vue | 17 ++++++----------- 1 files changed, 6 insertions(+), 11 deletions(-) diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue index c246462..a182c9f 100644 --- a/src/views/system/dict/index.vue +++ b/src/views/system/dict/index.vue @@ -204,11 +204,9 @@ } /** 鏂板鎸夐挳鎿嶄綔 */ const handleAdd = () => { + reset(); dialog.visible = true; dialog.title = "娣诲姞瀛楀吀绫诲瀷"; - nextTick(() => { - reset(); - }) } /** 澶氶�夋閫変腑鏁版嵁 */ const handleSelectionChange = (selection: DictTypeVO[]) => { @@ -217,16 +215,13 @@ multiple.value = !selection.length; } /** 淇敼鎸夐挳鎿嶄綔 */ -const handleUpdate = (row?: DictTypeVO) => { +const handleUpdate = async (row?: DictTypeVO) => { + reset(); + const dictId = row?.dictId || ids.value[0]; + const res = await getType(dictId); + Object.assign(form.value, res.data); dialog.visible = true; dialog.title = "淇敼瀛楀吀绫诲瀷"; - const dictId = row?.dictId || ids.value[0]; - nextTick(async () => { - reset(); - const res = await getType(dictId); - form.value = res.data; - }) - } /** 鎻愪氦鎸夐挳 */ const submitForm = () => { -- Gitblit v1.9.3