zydx-plus 1.33.423 → 1.33.424

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.33.423",
3
+ "version": "1.33.424",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -908,7 +908,10 @@ export default {
908
908
  Authorization: localStorage.getItem("remember") === "1" ? localStorage.getItem('sessionId') : sessionStorage.getItem('sessionId')
909
909
  },
910
910
  customInsert(res, insertFn) {
911
- insertFn('http://192.168.5.213:8888' + res.data)
911
+ setTimeout(() => {
912
+ console.log('uploadImage100');
913
+ insertFn('http://192.168.5.213:8888' + res.data)
914
+ },100)
912
915
  },
913
916
  onSuccess(file, res) {
914
917
  console.log('图片上传成功', file, res)
@@ -2529,13 +2532,16 @@ export default {
2529
2532
  }
2530
2533
  if (v === 'uploadImage') {
2531
2534
  up.customInsert(res, (data) => {
2532
- const cla = this.randomId()
2533
- const html = `<p class="imgCont ${cla}"><img src="${data}" alt="" /></p>`
2534
- this.editor.chain().focus().insertContentAt(this.selection(), html).run()
2535
- if (this.selection() <= 6 && this.selection() > 2) this.selectionClass2(cla)
2536
- if (this.selectionClass(cla)) {
2537
- this.editor.chain().focus().insertContentAt(this.selection(), '<p></p>').run()
2538
- }
2535
+ setTimeout(() => {
2536
+ console.log('uploadImage100');
2537
+ const cla = this.randomId()
2538
+ const html = `<p class="imgCont ${cla}"><img src="${data}" alt="" /></p>`
2539
+ this.editor.chain().focus().insertContentAt(this.selection(), html).run()
2540
+ if (this.selection() <= 6 && this.selection() > 2) this.selectionClass2(cla)
2541
+ if (this.selectionClass(cla)) {
2542
+ this.editor.chain().focus().insertContentAt(this.selection(), '<p></p>').run()
2543
+ }
2544
+ },100)
2539
2545
  })
2540
2546
  }
2541
2547
  up.onSuccess(file, res) // 上传成功回调
@@ -692,7 +692,8 @@ export default {
692
692
  })
693
693
  },
694
694
  upload(e, v) { // 上传文件
695
- const file = e.target.files[0]
695
+ console.log('ssdfasf');
696
+ const file = e.target.files[0]
696
697
  if (this.uploadType) {
697
698
  if (v === 'uploadAtt') {
698
699
  file.active = true
@@ -724,14 +725,17 @@ export default {
724
725
  e.target.value = ''
725
726
  },
726
727
  imgHtml(data) { // 插入图片
727
- const url = this.uploadImage.url + data
728
- const cla = this.randomId()
729
- const html = `<p class="imgCont ${cla}"><img src="${url}" alt="" width=""/></p>`
730
- this.editor.chain().focus().insertContentAt(this.selection(), html).run()
731
- if (this.selection() <= 6 && this.selection() > 2) this.selectionClass2(cla)
732
- if (this.selectionClass(cla)) {
733
- this.editor.chain().focus().insertContentAt(this.selection(), '<p></p>').run()
734
- }
728
+ setTimeout(() => {
729
+ console.log('uploadImage100');
730
+ const url = this.uploadImage.url + data
731
+ const cla = this.randomId()
732
+ const html = `<p class="imgCont ${cla}"><img src="${url}" alt="" width=""/></p>`
733
+ this.editor.chain().focus().insertContentAt(this.selection(), html).run()
734
+ if (this.selection() <= 6 && this.selection() > 2) this.selectionClass2(cla)
735
+ if (this.selectionClass(cla)) {
736
+ this.editor.chain().focus().insertContentAt(this.selection(), '<p></p>').run()
737
+ }
738
+ }, 100)
735
739
  },
736
740
  // selectImg(cla) {
737
741
  // this.$nextTick(() => {
package/src/index.js CHANGED
@@ -83,7 +83,7 @@ function install(app) {
83
83
  }
84
84
 
85
85
  export default {
86
- version: '1.33.423',
86
+ version: '1.33.424',
87
87
  install,
88
88
  Calendar,
89
89
  Message,