فهرست منبع

选择课件页面退出时,清空信息

dusenyao 1 سال پیش
والد
کامیت
c192557640
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      src/components/select/SelectCourse.vue

+ 4 - 0
src/components/select/SelectCourse.vue

@@ -125,6 +125,10 @@ watch(
       Message.warning($t('Key383'));
       dialogClose();
     }
+    if (!newVal) {
+      currentCourse.value = '';
+      context.value = null;
+    }
   }
 );