|
|
@@ -109,14 +109,20 @@ export default {
|
|
|
this.systemId = options.systemId || ''
|
|
|
this.parentId = options.parentId || ''
|
|
|
this.loadCustomers()
|
|
|
+ this._onLoadFired = true
|
|
|
},
|
|
|
|
|
|
onShow() {
|
|
|
- // 切Tab返回时刷新
|
|
|
- this.page = 1
|
|
|
- this.customers = []
|
|
|
- this.hasMore = true
|
|
|
- this.loadCustomers()
|
|
|
+ if (this._onLoadFired) {
|
|
|
+ // 首次进入:onLoad 已加载,跳过避免双发
|
|
|
+ this._onLoadFired = false
|
|
|
+ } else {
|
|
|
+ // 切Tab返回时刷新
|
|
|
+ this.page = 1
|
|
|
+ this.customers = []
|
|
|
+ this.hasMore = true
|
|
|
+ this.loadCustomers()
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
methods: {
|