cloud-web-corejs 1.0.54-dev.427 → 1.0.54-dev.429
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/Tinymce/index.vue +37 -18
package/package.json
CHANGED
|
@@ -217,24 +217,43 @@ export default {
|
|
|
217
217
|
// }, 0);
|
|
218
218
|
// return img
|
|
219
219
|
// },
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
220
|
+
images_upload_handler(blobInfo, success, failure, progress) {
|
|
221
|
+
progress(0);
|
|
222
|
+
_this.$baseUpload.upload({
|
|
223
|
+
file:blobInfo.blob(),
|
|
224
|
+
onProgress:(e)=>{
|
|
225
|
+
progress(e.percent)
|
|
226
|
+
},
|
|
227
|
+
callback:(res)=>{
|
|
228
|
+
if(res.type=="success"){
|
|
229
|
+
let url = res.objx.domain + res.objx.url;
|
|
230
|
+
success(url);
|
|
231
|
+
progress(100);
|
|
232
|
+
}else{
|
|
233
|
+
failure(res.content)
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
error:(e)=>{
|
|
237
|
+
failure(e.message)
|
|
238
|
+
}
|
|
239
|
+
})
|
|
240
|
+
/* progress(0);
|
|
241
|
+
const token = _this.$store.getters.token;
|
|
242
|
+
getToken(token).then(response => {
|
|
243
|
+
const url = response.data.qiniu_url;
|
|
244
|
+
const formData = new FormData();
|
|
245
|
+
formData.append('token', response.data.qiniu_token);
|
|
246
|
+
formData.append('key', response.data.qiniu_key);
|
|
247
|
+
formData.append('file', blobInfo.blob(), url);
|
|
248
|
+
upload(formData).then(() => {
|
|
249
|
+
success(url);
|
|
250
|
+
progress(100);
|
|
251
|
+
})
|
|
252
|
+
}).catch(err => {
|
|
253
|
+
failure('出现未知问题,刷新页面,或者联系程序员')
|
|
254
|
+
console.log(err);
|
|
255
|
+
}); */
|
|
256
|
+
},
|
|
238
257
|
});
|
|
239
258
|
},
|
|
240
259
|
destroyTinymce() {
|