From e998d551df1c96572838bbf661be938aa79d1be8 Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期四, 25 七月 2024 15:01:16 +0800
Subject: [PATCH] fix bug
---
mixin/mixin.js | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/mixin/mixin.js b/mixin/mixin.js
index f197668..9da88ef 100644
--- a/mixin/mixin.js
+++ b/mixin/mixin.js
@@ -258,9 +258,9 @@
}
return true
},
- async refreshList() {
+ async refreshList(type = 'get') {
this.page.current = 1
- await this.getList()
+ await this.getList(type)
},
async getList(type = 'get') {
if (this.listApi) {
@@ -278,7 +278,7 @@
}
})
if (data) {
- if (this.page.current == 1) {
+ if (this.page.current === 1) {
this.list = data.records || []
} else {
//根据id去重正常
@@ -294,6 +294,9 @@
}
this.page.total = data.total || 0
+ if (this.getList_after) {
+ this.getList_after()
+ }
}
this.$message.hideLoading()
}
@@ -495,9 +498,9 @@
// #ifdef PUB_CUSTOMER
,
async submitShopping(dto) {
- //提交到购物车中
+ //提交到购物车中
this.$message.showLoading()
- await this.$store.dispatch('submitShopping',dto);
+ await this.$store.dispatch('submitShopping', dto);
this.$message.hideLoading()
}
// #endif
--
Gitblit v1.9.3