Browse Source

增加loading

jbb 2 năm trước cách đây
mục cha
commit
40acb77c57
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/views/book/book-list.vue

+ 2 - 0
src/views/book/book-list.vue

@@ -514,7 +514,9 @@ export default {
           if(this.queryParam.pageNo > 1 && this.bookListData.length === 1){
           if(this.queryParam.pageNo > 1 && this.bookListData.length === 1){
           this.queryParam.pageNo = this.queryParam.pageNo -1
           this.queryParam.pageNo = this.queryParam.pageNo -1
         }
         }
+        this.loading = true
         deletePackingList({id:id}).then(res => {
         deletePackingList({id:id}).then(res => {
+          this.loading = false
           if (res.success) {
           if (res.success) {
             this.getBookList()
             this.getBookList()
           }else {
           }else {