lrf402788946 4 gadi atpakaļ
vecāks
revīzija
83455f368c
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      src/views/class/classStuList.vue

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

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