【fix ESLint】src/components/jero/JMarkdownEditor
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user