fix(wechat): 协议页切后台暂停超时计时并全量映射技术文案
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
const authApi = require('../../api/auth')
|
||||
const { showErrorToast } = require('../../utils/toast')
|
||||
const { showErrorToast, toUserMessage } = require('../../utils/toast')
|
||||
|
||||
Page({
|
||||
data: {
|
||||
@@ -54,7 +54,7 @@ Page({
|
||||
shopSelectorItems: this.filterShops(shopOptions, this.data.shopKeyword)
|
||||
})
|
||||
} catch (error) {
|
||||
this.setData({ shopOptions: [], shopSelectorItems: [], shopError: error.message || '门店列表加载失败' })
|
||||
this.setData({ shopOptions: [], shopSelectorItems: [], shopError: toUserMessage(error, '门店列表加载失败') })
|
||||
} finally {
|
||||
this.setData({ shopLoading: false })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user