diff --git a/src/styles/markdown.scss b/src/styles/markdown.scss index d4d30f0..d84fb85 100644 --- a/src/styles/markdown.scss +++ b/src/styles/markdown.scss @@ -349,7 +349,7 @@ /deep/ .slimScrollDiv,.l_side { transform: translateX(50px); } - /deep/ .article_l_main { + /deep/ .article_l_main[content=show] { transform: translateX(50px); } } @@ -358,7 +358,7 @@ /deep/ .slimScrollDiv,.l_side { transform: translateX(80px); } - /deep/ .article_l_main { + /deep/ .article_l_main[content=show] { transform: translateX(80px); } } @@ -367,7 +367,7 @@ /deep/ .slimScrollDiv,.l_side { transform: translateX(120px); } - /deep/ .article_l_main { + /deep/ .article_l_main[content=show] { transform: translateX(120px); } } diff --git a/src/views/public/article/index.vue b/src/views/public/article/index.vue index 9f719e5..2b22336 100644 --- a/src/views/public/article/index.vue +++ b/src/views/public/article/index.vue @@ -44,7 +44,7 @@
\n" + - // " \n" + - // " 本文最后更新于:2020年9月16日 上午\n" + - // " \n" + - // "
" p.className = "note-update-date" p.innerText = `本文最后更新于:${this.file.updateDate}` - // main.insertAdjacentHTML('beforebegin', '复制代码'); - // main.childNodes[0].insertAdjacentHTML('beforebegin', '') main.insertBefore(p , main.childNodes[0]) // 动态打字效果 diff --git a/src/views/public/articles/index.vue b/src/views/public/articles/index.vue index ca64857..bf8a1df 100644 --- a/src/views/public/articles/index.vue +++ b/src/views/public/articles/index.vue @@ -20,8 +20,9 @@