Pārlūkot izejas kodu

Merge branch 'xw/hotfix-0523' into develop

XW 3 gadi atpakaļ
vecāks
revīzija
a1b642de88

+ 1 - 0
TEAMModelOS/ClientApp/src/components/student-web/EventView/EventContentTypeTemplate/composePaper.vue

@@ -131,6 +131,7 @@ export default {
       this.editor.config.height = 300
       this.editor.config.showLinkImg = false
       this.editor.config.uploadImgShowBase64 = true // 使用 base64 保存图片不建议使用这种,我只是图个方便
+      this.editor.config.uploadImgMaxSize = 2 * 1024 * 1024 // 2M
       this.$editorTools.addAudio(this, this.editor, 'simple')
       this.$editorTools.addVideoUpload(this, this.editor, 'simple')
       this.$editorTools.addCanvas(this, this.editor)

+ 1 - 0
TEAMModelOS/ClientApp/src/components/student-web/EventView/EventContentTypeTemplate/composePaperHw.vue

@@ -99,6 +99,7 @@ export default {
             this.editor.config.height = 300
             this.editor.config.showLinkImg = false
             this.editor.config.uploadImgShowBase64 = true // 使用 base64 保存图片不建议使用这种,我只是图个方便
+            this.editor.config.uploadImgMaxSize = 2 * 1024 * 1024 // 图片最大2M
             this.$editorTools.addCanvas(this, this.editor)
             // this.$editorTools.addStuBgBtn(this, this.editor)
             let curLang = localStorage.getItem("local") || "zh-cn"