BUG 25116
This commit is contained in:
@@ -1,15 +1,18 @@
|
||||
<template>
|
||||
<section class="mainEntry">
|
||||
<component ref="CurrentEntry" v-if="app" :is="app"/>
|
||||
<component ref="CurrentEntry" v-if="!!app" :is="app"/>
|
||||
<div v-else>
|
||||
<AiResult tips="应用建设中.." status="error" btn="返回主页" :btn-tap="back"/>
|
||||
<ai-result tips="应用建设中.." status="error" btn="返回主页" :btn-tap="back"/>
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import AiResult from "../components/AiResult";
|
||||
|
||||
export default {
|
||||
name: "mainEntry",
|
||||
components: {AiResult},
|
||||
inject: {root: {}},
|
||||
data() {
|
||||
return {
|
||||
@@ -24,9 +27,14 @@ export default {
|
||||
},
|
||||
onLoad(params) {
|
||||
this.app = params.app || ""
|
||||
sessionStorage.setItem("currentApp", params.app)
|
||||
},
|
||||
onShow() {
|
||||
this.app = this.$route.query.app || ""
|
||||
if (!this.app && sessionStorage.getItem("currentApp")) {
|
||||
this.$router.push({query: {app: sessionStorage.getItem("currentApp")}})
|
||||
location.reload()
|
||||
}
|
||||
this.$nextTick(() => {
|
||||
this.$refs.CurrentEntry?.emitShow?.()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user