yrik 4 years ago
parent
commit
050e2bcc01
1 changed files with 9 additions and 4 deletions
  1. 9 4
      ruoyi-ui/src/views/system/editing/index.vue

+ 9 - 4
ruoyi-ui/src/views/system/editing/index.vue

@@ -382,10 +382,15 @@
       foremliseju(){
        listIndex(this.queryParamslist).then(res => {
          console.log(res)
-         let data = res.data
-         this.postList = data
-         this.loading = false
-         this.total = res.data.total - 0
+         if(res.code == 200){
+           let data = res.data
+           this.postList = data
+           this.total = res.data.total - 0
+         }else{
+           console.log(876)
+           // this.postList = []
+         }
+          this.loading = false
          console.log(this.total)
          console.log(this.postList,567)