给所有组件添加name属性预防未知bug!!!
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
<script setup>
|
||||
import { ref, reactive } from 'vue'
|
||||
<script name="WxEditor" setup>
|
||||
import { reactive, ref } from 'vue'
|
||||
import { QuillEditor } from '@vueup/vue-quill'
|
||||
import '@vueup/vue-quill/dist/vue-quill.snow.css'
|
||||
import { getAccessToken } from '@/utils/auth'
|
||||
@ -88,21 +88,21 @@ const uploadError = () => {
|
||||
<div v-loading="loading" element-loading-text="请稍等,图片上传中">
|
||||
<!-- 图片上传组件辅助-->
|
||||
<el-upload
|
||||
:action="actionUrl"
|
||||
:before-upload="beforeUpload"
|
||||
:data="uploadData"
|
||||
:headers="headers"
|
||||
:on-error="uploadError"
|
||||
:on-success="uploadSuccess"
|
||||
:show-file-list="false"
|
||||
class="avatar-uploader"
|
||||
name="file"
|
||||
:action="actionUrl"
|
||||
:headers="headers"
|
||||
:show-file-list="false"
|
||||
:data="uploadData"
|
||||
:on-success="uploadSuccess"
|
||||
:on-error="uploadError"
|
||||
:before-upload="beforeUpload"
|
||||
/>
|
||||
<QuillEditor
|
||||
class="editor"
|
||||
v-model="content"
|
||||
ref="quillEditorRef"
|
||||
v-model="content"
|
||||
:options="editorOptions"
|
||||
class="editor"
|
||||
@change="onEditorChange($event)"
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user