Merge remote-tracking branch 'origin/master'

This commit is contained in:
ronger 2021-03-29 22:01:51 +08:00
commit 9d8a34cec6
4 changed files with 15 additions and 2 deletions

View File

@ -185,7 +185,8 @@ p {
/* 设置滚动条的样式 */
::-webkit-scrollbar {
width: 1px;
width: 7px;
height: 7px;
}
/* 滚动槽 */

View File

@ -29,7 +29,7 @@
"save-svg-as-png": "^1.4.17",
"sockjs-client": "^1.5.0",
"stompjs": "^2.3.3",
"vditor": "^3.8.3",
"vditor": "^3.8.4",
"vue-cropperjs": "^4.2.0",
"vuejs-avataaars": "^4.0.1"
},

View File

@ -134,6 +134,7 @@ import {mapState} from 'vuex';
import ShareBox from '~/components/widget/share';
import PortfoliosWidget from '~/components/widget/portfolios';
import EditTags from '~/components/widget/tags';
import 'vditor/dist/css/content-theme/light.css';
export default {
name: "ArticleDetail",
@ -382,6 +383,11 @@ export default {
Vue.VditorPreview.mediaRender(previewElement);
Vue.VditorPreview.lazyLoadImageRender(previewElement);
//VditorPreview.outlineRender(previewElement, outLineElement);
previewElement.addEventListener("click", (event) => {
if (event.target.tagName === "IMG") {
Vue.VditorPreview.previewImage(event.target);
}
});
window.scrollTo(0, 0);
_ts.$set(_ts, 'isPerfect', _ts.article.articlePerfect === '1')
})

View File

@ -67,6 +67,7 @@
<script>
import Vue from 'vue';
import {mapState} from 'vuex';
import 'vditor/dist/css/content-theme/light.css';
export default {
name: "DraftDetail",
@ -154,6 +155,11 @@
Vue.VditorPreview.mediaRender(previewElement);
Vue.VditorPreview.lazyLoadImageRender(previewElement);
//VditorPreview.outlineRender(previewElement, outLineElement);
previewElement.addEventListener("click", (event) => {
if (event.target.tagName === "IMG") {
Vue.VditorPreview.previewImage(event.target);
}
});
window.scrollTo(0,0);
})
}