|
@@ -138,6 +138,7 @@ export default {
|
|
};
|
|
};
|
|
this.$api.getPolicy(datats).then((res) => {
|
|
this.$api.getPolicy(datats).then((res) => {
|
|
this.datas = res.data.resultContent;
|
|
this.datas = res.data.resultContent;
|
|
|
|
+ console.log(res.data.resultContent.host)
|
|
this.uploadUrl = res.data.resultContent.host;
|
|
this.uploadUrl = res.data.resultContent.host;
|
|
resolve();
|
|
resolve();
|
|
});
|
|
});
|
|
@@ -150,6 +151,7 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
handleCustomMatcher(node, Delta) {
|
|
handleCustomMatcher(node, Delta) {
|
|
|
|
+ console.log("handleCustomMatcher")
|
|
let ops = [];
|
|
let ops = [];
|
|
Delta.ops.forEach((op) => {
|
|
Delta.ops.forEach((op) => {
|
|
if (op.insert && typeof op.insert === "string") {
|
|
if (op.insert && typeof op.insert === "string") {
|
|
@@ -185,6 +187,7 @@ export default {
|
|
return Delta;
|
|
return Delta;
|
|
},
|
|
},
|
|
base64ToFile(base64, fileName) {
|
|
base64ToFile(base64, fileName) {
|
|
|
|
+ console.log("base64ToFile")
|
|
return new Promise((resolve, reject) => {
|
|
return new Promise((resolve, reject) => {
|
|
let arr = base64.split(",");
|
|
let arr = base64.split(",");
|
|
let mime = arr[0].match(/:(.*?);/)[1];
|
|
let mime = arr[0].match(/:(.*?);/)[1];
|
|
@@ -201,6 +204,7 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
init() {
|
|
init() {
|
|
|
|
+ console.log("init")
|
|
const editor = this.$refs.editor;
|
|
const editor = this.$refs.editor;
|
|
this.Quill = new Quill(editor, this.options);
|
|
this.Quill = new Quill(editor, this.options);
|
|
// 如果设置了上传地址则自定义图片上传事件
|
|
// 如果设置了上传地址则自定义图片上传事件
|
|
@@ -253,6 +257,7 @@ export default {
|
|
};
|
|
};
|
|
},
|
|
},
|
|
imageChange(param, type) {
|
|
imageChange(param, type) {
|
|
|
|
+ console.log("imageChange")
|
|
this.$upload
|
|
this.$upload
|
|
.upload(param.file, this.uploadStatus)
|
|
.upload(param.file, this.uploadStatus)
|
|
.then((res) => {
|
|
.then((res) => {
|