lrf402788946 %!s(int64=4) %!d(string=hai) anos
pai
achega
83455f368c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/views/class/classStuList.vue

+ 1 - 0
src/views/class/classStuList.vue

@@ -46,6 +46,7 @@ export default {
   methods: {
     ...student(['query', 'delete']),
     async search({ skip = 0, limit = 10, ...info } = {}) {
+      if (!this.id) return;
       const res = await this.query({ skip, limit, ...info, classid: this.id });
       if (this.$checkRes(res)) {
         this.$set(this, `tableData`, res.data);