소스 검색

解决页面初始化时控制台报错的问题

lkk 11 달 전
부모
커밋
a270eb887e
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/components/Bookmark/Bookmark.vue
  2. 1 1
      src/components/Query/PlacenameLocation/PlacenameLocation.vue

+ 1 - 1
src/components/Bookmark/Bookmark.vue

@@ -141,7 +141,7 @@ export default {
           this.total = res.data.count;
           this.tableData = res.data.data;
         } else {
-          this.$message.error(e);
+          this.$message.error(res.message);
         }
       });
     },

+ 1 - 1
src/components/Query/PlacenameLocation/PlacenameLocation.vue

@@ -109,7 +109,7 @@ export default {
           this.total = res.data.count;
           this.tableData = res.data.data;
         } else {
-          this.$message.error(e);
+          this.$message.error(res.message);
         }
       });
     },