【fix ESLint】src/components/jero/JMarkdownEditor

This commit is contained in:
zhaoxiao
2023-03-03 11:09:42 +08:00
parent 4bae9bfa1c
commit 064d4efdb9
@@ -102,7 +102,7 @@ export default {
this.editor.setMarkdown(newValue) this.editor.setMarkdown(newValue)
} }
}, },
language (val) { language () {
this.destroyEditor() this.destroyEditor()
this.initEditor() this.initEditor()
}, },
@@ -137,7 +137,6 @@ export default {
*/ */
// 获取编辑器上的功能条 // 获取编辑器上的功能条
const toolbar = this.editor.getUI().getToolbar() const toolbar = this.editor.getUI().getToolbar()
const fileDom = this.$refs.files
// 添加图片点击事件 // 添加图片点击事件
this.editor.eventManager.addEventType('isShowClickEvent') this.editor.eventManager.addEventType('isShowClickEvent')
this.editor.eventManager.listen('isShowClickEvent', () => { this.editor.eventManager.listen('isShowClickEvent', () => {
@@ -184,7 +183,7 @@ export default {
return this.editor.getHtml() return this.editor.getHtml()
}, },
handleOk () { handleOk () {
if (this.index == '1') { if (this.index === '1') {
this.imageUrl = getFileAccessHttpUrl(this.fileList) this.imageUrl = getFileAccessHttpUrl(this.fileList)
if (this.remark) { if (this.remark) {
this.addImgToMd(this.imageUrl, this.remark) this.addImgToMd(this.imageUrl, this.remark)