File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
src/views/mp/components/wx-editor Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
<script name="WxEditor" setup>
2
- import { ref , reactive } from ' vue'
2
+ import { reactive , ref } from ' vue'
3
3
import { getAccessToken } from ' @/utils/auth'
4
4
import { Editor } from ' @/components/Editor'
5
5
@@ -83,21 +83,21 @@ const uploadError = () => {
83
83
<div v-loading =" loading" element-loading-text =" 请稍等,图片上传中" >
84
84
<!-- 图片上传组件辅助-->
85
85
<el-upload
86
- class =" avatar-uploader"
87
- name =" file"
88
86
:action =" actionUrl"
89
- :headers =" headers"
90
- :show-file-list =" false"
87
+ :before-upload =" beforeUpload"
91
88
:data =" uploadData"
92
- :on-success = " uploadSuccess "
89
+ :headers = " headers "
93
90
:on-error =" uploadError"
94
- :before-upload =" beforeUpload"
91
+ :on-success =" uploadSuccess"
92
+ :show-file-list =" false"
93
+ class =" avatar-uploader"
94
+ name =" file"
95
95
/>
96
96
<Editor
97
- editor-id =" wxEditor"
98
97
ref =" quillEditorRef"
99
98
:modelValue =" content"
100
- @change =" (editor) => onEditorChange(editor.getText())"
99
+ editor-id =" wxEditor"
100
+ @change =" (editor_) => onEditorChange(editor_.getText())"
101
101
/>
102
102
</div >
103
103
</div >
You can’t perform that action at this time.
0 commit comments