diff --git a/src/components/Editor/indexCourse.vue b/src/components/Editor/indexCourse.vue index 888f37a5..881984e4 100644 --- a/src/components/Editor/indexCourse.vue +++ b/src/components/Editor/indexCourse.vue @@ -15,7 +15,7 @@
搜索 - 返回 + 重置
@@ -83,7 +83,7 @@ const toolbarOptions = [ [{ align: [] }], // 对齐方式 [{ lineheight: ['initial', '1', '1.5', '2', '3', '4'] }], ["clean"], // 清除文本格式 - // ["link", "image"], + ["link", "image"], ["selectPicture"], ] Quill.register({ 'formats/lineHeight': lineHeightStyle }, true) @@ -117,7 +117,7 @@ export default { data() { return { getType, - fileBaseUrl:this.$Constants.fileBaseUrl, + fileBaseUrl:process.env.VUE_APP_FILE_BASE_URL, hasCWare:{ list:[], keyword:'', @@ -200,12 +200,13 @@ export default { }, methods: { closeCWareFind(){ - + this.hasCWare.keyword = ''; + this.hasCWare.pageIndex = 1; + this.getCoursewareList(); }, chooseHasCWare(row){// 选中图片 let length = this.QuillObj.getSelection().index//光标位置 // 插入图片 图片地址 - console.log(this.fileBaseUrl + row.filePath,'this.fileBaseUrl + row.filePath'); this.QuillObj.insertEmbed(length, 'image', this.fileBaseUrl + row.filePath) // 调整光标到最后 this.QuillObj.setSelection(length + 1)//光标后移一位