From f801f4fb11ff8ca08417a9ddf0231fb570fa26e3 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子Li <15040126243@163.com>
Date: 星期一, 24 七月 2023 16:47:51 +0800
Subject: [PATCH] fix 修复 固定页面header穿模问题

---
 src/views/system/notice/index.vue |   16 ++++++----------
 1 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/src/views/system/notice/index.vue b/src/views/system/notice/index.vue
index 9548093..0c41ce1 100644
--- a/src/views/system/notice/index.vue
+++ b/src/views/system/notice/index.vue
@@ -206,22 +206,18 @@
 }
 /** 鏂板鎸夐挳鎿嶄綔 */
 const handleAdd = () => {
+  reset();
   dialog.visible = true;
   dialog.title = "娣诲姞鍏憡";
-  nextTick(() => {
-    reset();
-  })
 }
 /**淇敼鎸夐挳鎿嶄綔 */
-const handleUpdate = (row?: NoticeVO) => {
+const handleUpdate = async (row?: NoticeVO) => {
+  reset();
+  const noticeId = row?.noticeId || ids.value[0];
+  const { data } = await getNotice(noticeId);
+  Object.assign(form.value, data);
   dialog.visible = true;
   dialog.title = "淇敼鍏憡";
-  nextTick(async () => {
-    const noticeId = row?.noticeId || ids.value[0];
-    reset();
-    const { data } = await getNotice(noticeId);
-    form.value = data;
-  })
 }
 /** 鎻愪氦鎸夐挳 */
 const submitForm = () => {

--
Gitblit v1.9.3