zydx-plus 1.32.222 → 1.32.223

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zydx-plus",
3
- "version": "1.32.222",
3
+ "version": "1.32.223",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -636,6 +636,7 @@ export default {
636
636
  },
637
637
  // 整理按钮
638
638
  organizeButton() {
639
+ this.butData = []
639
640
  this.toolbar.forEach(item => {
640
641
  let obj = butJson(this.editor, this.menusText)[item.key === undefined ? item : item.key]
641
642
  if (obj) {
@@ -329,7 +329,11 @@ export default {
329
329
  })
330
330
  }else {
331
331
  this.uploadFile(file,this.uploadImage).then(r => {
332
- this.imgHtml(r.data)
332
+ if (r.code === '200') {
333
+ this.imgHtml(r.data)
334
+ }else {
335
+ this.uploadImage.onFailed(r)
336
+ }
333
337
  })
334
338
  }
335
339
  }else {
package/src/index.js CHANGED
@@ -79,7 +79,7 @@ function install(app) {
79
79
  }
80
80
 
81
81
  export default {
82
- version: '1.32.222',
82
+ version: '1.32.223',
83
83
  install,
84
84
  Calendar,
85
85
  Message,