产品库自动化,自动根据pages下的内容生成pages.json
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user