yrik 4 년 전
부모
커밋
050e2bcc01
1개의 변경된 파일9개의 추가작업 그리고 4개의 파일을 삭제
  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)