inleft
2022-08-24 80476fae71f08bf4408c7509eff254031a4eeac6
src/components/mini/box10-add.vue
@@ -24,7 +24,7 @@
         <a-form-model-item label="日志文件" v-show="!form.online">
            <a-upload ref="blogFileUpload" :customRequest="customRequest" name="file" :showUploadList="true"
               @change="handleChange" :default-file-list="form.blogFileList" :beforeUpload="beforeUpload"
               :data="{'fileType':myConstant.fileTypeMarkDown}" accept=".md,.html,.htm,.txt">
               :data="{'bucketName':bucketName.bucket_article}" accept=".md,.html,.htm,.txt">
               <a-button>
                  <a-icon type="upload" />限 markdown/html
               </a-button>
@@ -102,7 +102,7 @@
            <a-form-model-item label="封面">
               <a-upload :customRequest="customRequest" name="file" :showUploadList="true" list-type="picture"
                  :data="{'fileType':myConstant.fileTypeCover}" @change="handleChangeCoverFile"
                  :data="{'bucketName':bucketName.bucket_cover}" @change="handleChangeCoverFile"
                  :default-file-list="form.coverFileList" :beforeUpload="beforeUploadCover"
                  accept=".jpg,.png,.jpeg">
                  <!-- :disabled="form.coverFileList.length>=1" -->
@@ -213,7 +213,7 @@
         };
         return {
            myConstant: myConstant,
            bucketName: myConstant.bucketName,
            blogArticleType: [],
            tags: [],
            inputVisible: false,
@@ -369,7 +369,7 @@
         customRequest(option) {
            const formData = new FormData()
            formData.append('file', option.file)
            formData.append('fileType', option.data.fileType)
            formData.append('bucketName', option.data.bucketName)
            formData.append('authCode', this.form.secret == "" ? "" : md5(this.form.secret))
            myFileInfoUpload(formData).then((res) => {
               if (res.success) {