| | |
| | | beforeEditorUpload(res, file) { |
| | | //显示上传动画 |
| | | this.quillUpdateImg = true; |
| | | // const res1 = await uploadImage() |
| | | // console.log(res1,'====='); |
| | | // this.$emit('before',res, file) |
| | | console.log(res); |
| | | console.log(file); |
| | | }, |
| | |
| | | // 获取光标所在位置 |
| | | let length = quill.getSelection().index; |
| | | // 插入图片||视频 res.info为服务器返回的图片地址 |
| | | if (type == "mp4" || type == "MP4") { |
| | | if (type == "mp4" || type == "MP4"|| type == "avi"|| type == "AVI") { |
| | | window.jsValue = imgUrl; |
| | | quill.insertEmbed(length, "video", imgUrl); |
| | | } else { |
| | |
| | | }); |
| | | }, |
| | | Getmissioncontent(url) { |
| | | console.log(111,url); |
| | | |
| | | axios |
| | | .get(url) |
| | | .then((response) => { |