11wqe1 2 недель назад
Родитель
Сommit
11a19f879b
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      src/components/pages/studentManageNew/component/table.vue

+ 4 - 0
src/components/pages/studentManageNew/component/table.vue

@@ -767,6 +767,10 @@ export default {
         this.activeId = newVal;
         this.activeId = newVal;
         this.inp = "";
         this.inp = "";
         this.interestType = 0;
         this.interestType = 0;
+        // 进入页面时 activeId 尚未赋值,避免空 claid 请求
+        if (!newVal && newVal !== 0) {
+          return;
+        }
         this.refresh();
         this.refresh();
       },
       },
       immediate: true
       immediate: true