增加Markdown格式编辑方式和查看,增加快速打开开放文档地址

This commit is contained in:
暮光:城中城
2020-06-21 22:52:45 +08:00
parent cb7cce2b98
commit 1dd6588d63
33 changed files with 340 additions and 114 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div>
<div class="global-layout-vue">
<el-container>
<el-aside v-show="leftCollapse">
<div style="padding: 10px;height: 100%;box-sizing: border-box;background: #fafafa;">
@@ -48,7 +48,8 @@
<router-view @loadPageList="loadPageList"
@changeExpandedKeys="changeWikiPageExpandedKeys"
@switchSpace="switchSpacePage"
:spaceId="choiceSpace">
:spaceId="choiceSpace"
:spaceInfo="getSpaceInfo(choiceSpace)">
</router-view>
</el-main>
</el-container>
@@ -354,6 +355,14 @@
location.reload();
});
},
getSpaceInfo(spaceId) {
for (let i = 0; i < this.spaceList.length; i++) {
if (this.spaceList[i].id == spaceId) {
return this.spaceList[i];
}
}
return {};
},
onNewSpaceSubmit(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
@@ -417,6 +426,7 @@
padding: 0;
height: 100%;
}
.global-layout-vue{height: 100%;}
#app, .el-container, .el-menu {
height: 100%;