登录页开发,控制台页面开发,页面跳转逻辑调整

This commit is contained in:
sswiki
2024-12-24 22:50:32 +08:00
parent e9f1c3b5cf
commit 91bad1a059
24 changed files with 1020 additions and 111 deletions

View File

@@ -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">