guoshilong
2022-10-11 e46d6374cdcf4733cc37545d08661ce8344030d8
修改文件上传地址的写法
1 files modified
13 ■■■■ changed files
pages/eventgm/eventsReported.vue 13 ●●●● patch | view | raw | blame | history
pages/eventgm/eventsReported.vue
@@ -53,7 +53,7 @@
                ></evan-upload>
            </u-form-item>
            
            <video v-if="videoShow" :src="videoUrl"></video>
            <!-- <video  :src="videoUrl"></video> -->
            
            <u-form-item label-position="top" label="备注:">
                <u-input v-model="form.remark" type="textarea" />
@@ -73,6 +73,7 @@
import {add} from "@/api/eventgm/eventgm.js"
import {getDicList} from "@/api/dict/dict.js"
import evanUpload from "@/components/evan-upload/evan-upload.vue";
import {devUrl} from '@/common/setting'
export default {
    components: {'evan-upload' :evanUpload },
    data() {
@@ -110,11 +111,12 @@
                }]
                
            },
            //换用其他写法
            uploadOption:{
                url:"http://localhost/blade-resource/oss/endpoint/put-file-attach",
                // url:"http://localhost/blade-resource/oss/endpoint/put-file-attach",
                url:devUrl+"/blade-resource/oss/endpoint/put-file-attach",
                header:{},
            },
            fileSuffix: 'fileType',
            uploadList:[],
            videoUrl:"",
            videoShow:false,
@@ -261,6 +263,11 @@
            // console.log(video)
            // this.videoShow = true
            this.videoUrl = video.url
            // uni.previewMedia({
            //     sources:[{
            //         url:video.url
            //     }]
            // })
        },
    }
};