#I6Z8UX 解决列表样式问题,修复保存后文档加载问题

This commit is contained in:
暮光:城中城
2023-05-04 19:46:28 +08:00
parent 8fc9770e6d
commit ff2591adaa
4 changed files with 35 additions and 9 deletions

View File

@@ -2,7 +2,7 @@
ENV = 'development' ENV = 'development'
# base api # base api
VITE_APP_BASE_API = 'http://local.zyplayer.com:8083/zyplayer-doc' VITE_APP_BASE_API = 'http://local.zyplayer.com:8084/zyplayer-doc'
# VITE_APP_BASE_API = 'http://doc.zyplayer.com' # VITE_APP_BASE_API = 'http://doc.zyplayer.com'

View File

@@ -199,7 +199,7 @@ const createWikiSave = (saveAfter) => {
query: {pageId: pageId.value}, query: {pageId: pageId.value},
}) })
} else { } else {
loadPageDetail.value(pageId.value) loadPageDetail(pageId.value)
} }
}) })
} }
@@ -296,6 +296,20 @@ const initEditor = () => {
} }
</style> </style>
<style lang="scss">
.page-edit-vue {
.page-content-editor {
ol {
list-style: decimal;
}
ul {
list-style: disc;
}
}
}
</style>
<style> <style>
.page-edit-vue .icon-collapse { .page-edit-vue .icon-collapse {
float: left; float: left;

View File

@@ -668,7 +668,24 @@ const initQueryParam = (to) => {
<style lang="scss" scoped> <style lang="scss" scoped>
.page-show-vue { .page-show-vue {
.wiki-page-content { .wiki-page-content {
margin-top: 20px; margin-top: 20px;
}
}
</style>
<style lang="scss">
.page-show-vue {
height: 100%;
overflow: hidden;
.wiki-page-content {
ol {
list-style: decimal;
}
ul {
list-style: disc;
}
} }
} }
</style> </style>
@@ -676,11 +693,6 @@ const initQueryParam = (to) => {
<style> <style>
@import '../../assets/lib/wangEditor.css'; @import '../../assets/lib/wangEditor.css';
.page-show-vue {
height: 100%;
overflow: hidden;
}
.page-show-vue .icon-collapse { .page-show-vue .icon-collapse {
float: left; float: left;
font-size: 25px; font-size: 25px;

View File

@@ -86,7 +86,7 @@ const loadCommentList = () => {
let subCommentList = commentListRes[i].commentList || [] let subCommentList = commentListRes[i].commentList || []
for (let j = 0; j < subCommentList.length; j++) { for (let j = 0; j < subCommentList.length; j++) {
let subItem = subCommentList[j] let subItem = subCommentList[j]
subItem.color = getUserHeadBgColor.value(subItem.createUserId) subItem.color = getUserHeadBgColor(subItem.createUserId)
} }
commentListRes[i].commentList = subCommentList commentListRes[i].commentList = subCommentList
commentListRes[i].visible = false commentListRes[i].visible = false