登录页开发,控制台页面开发,页面跳转逻辑调整
This commit is contained in:
@@ -173,10 +173,19 @@ let pageContentRef = ref();
|
||||
const initQueryParam = (to) => {
|
||||
spaceId = parseInt(to.params.spaceId);
|
||||
pageId = parseInt(to.params.pageId);
|
||||
clearPageData();
|
||||
if (!!pageId) {
|
||||
loadPageDetail(pageId);
|
||||
}
|
||||
}
|
||||
const clearPageData = () => {
|
||||
wikiPage.value = {};
|
||||
wikiPageAuth.value = {};
|
||||
pageContent.value = '';
|
||||
pageContentShow.value = '';
|
||||
storePage.pageInfo = {};
|
||||
storePage.pageAuth = {};
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
||||
Reference in New Issue
Block a user