AI vor 1 Monat
Ursprung
Commit
04e1403e5e
1 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
  1. 3 2
      src/views/news/GoodList.vue

+ 3 - 2
src/views/news/GoodList.vue

@@ -144,6 +144,7 @@ export default {
       if (type == "search") {
         this.getApiData.page = 1;
       }
+      console.log(this.getApiData, '---1--')
       this.$store.dispatch('news/getGoodList', this.getApiData).then(res => {
         //格式化:islink=0为不使用外面 islink=1为使用外链
         //status=1为显示 status=2为不显示
@@ -152,8 +153,8 @@ export default {
           // if(item.status==0){item.status="隐藏"}
           // if(item.status==1){item.status="显示"}
           // if(item.status==404){item.status="已删除"}
-          if (item.islink == 0) { item.islink = "否" }
-          if (item.islink == 1) { item.islink = "是" }
+          // if (item.islink == 0) { item.islink = "否" }
+          // if (item.islink == 1) { item.islink = "是" }
           data.push(item)
         }
         this.tableData = res.data.rows; //给与内容