增加接口获取loading,调整为标准组件而不是直接跳标准应用

This commit is contained in:
aixianling
2023-03-06 11:00:12 +08:00
parent 8d1ded1251
commit 5926f6abbe
2 changed files with 3 additions and 3 deletions

View File

@@ -69,6 +69,7 @@ export default {
},
methods: {
getAllGrids() {
uni.showLoading({title: "数据加载中...", mask: true})
this.selectList = []
let {girdMemberId} = this.user,
url = `/app/appgirdmemberinfo/queryMyGirdListByLevel2AndUser`,
@@ -86,7 +87,7 @@ export default {
this.allData = res.data.map(e => ({...e, hasChildren: parents.includes(e.id)}))
this.treeInit()
}
})
}).finally(() => uni.hideLoading())
},
treeInit(isClick) {
let last = uni.getStorageSync("lastSelectedGrid")