diff --git a/src/view/ExportSaleData.vue b/src/view/ExportSaleData.vue index c2ee2ed..6933048 100644 --- a/src/view/ExportSaleData.vue +++ b/src/view/ExportSaleData.vue @@ -220,7 +220,6 @@ import { Message } from 'element-ui' methods: { beforeGetList() { - this.isLoading = true this.list = [] this.currentPage = 1 this.todayMoney = 0.0 @@ -228,13 +227,15 @@ import { Message } from 'element-ui' this.inventoryMoeny = 0.0 this.inventoryTotal = 0 if (!this.mallId) { + Message.error("请先选择店铺") return } + this.isLoading = true this.$userCheck(this.mallId).then(() => { this.getList() }).catch((err) => { - console.log(err) + this.isLoading = false }) }, getList () {