产品库自动化,自动根据pages下的内容生成pages.json

This commit is contained in:
aixianling
2021-11-15 14:23:50 +08:00
parent 5440b43b9c
commit aa4f0c8837
6 changed files with 86 additions and 623 deletions

View File

@@ -82,40 +82,10 @@ export default {
uni.showLoading({
title: "加载中"
})
this.initAccess()?.then(() => {
uni.hideLoading()
if (this.token) {
if (this.currentApp.name) {
this.redirectTo(this.currentApp.path)
} else if (this.$route.query.url) {
this.redirectTo(this.$route.query.url)
} else {
this.result = {
status: "error",
tips: "应用加载失败",
btn: "重新加载",
btnTap() {
location.href = location.href?.replace("#error", '')
}
}
}
} else if (this.isDev) {
this.result = {
tips: "欢迎进入开发应用",
}
} else {
this.result = {
status: "error",
tips: "应用加载失败",
btn: "重新加载",
btnTap() {
location.href = location.href?.replace("#error", '')
}
}
}
})?.catch(() => {
uni.navigateTo({url: './login'})
})
uni.hideLoading()
this.result = {
tips: "欢迎进入开发应用",
}
}
}
</script>