zhanghua
2023-01-30 5173f8e31d106abd003e123c8679cf53c7940b33
src/components/Upload/index.vue
@@ -23,7 +23,6 @@
    },
    methods: {
        beforeUpload(rawFile) {
            console.log(rawFile);
            if (rawFile.type !== 'image/png' && rawFile.type !== 'image/svg+xml' && rawFile.type !== 'image/jpg' && rawFile.type !== 'image/jpeg') {
                this.$message.error('图片必须是 jpg/svg/jpeg/png 格式!')
                return false
@@ -34,7 +33,6 @@
            return true
        },
        handleSuccess(res, file, filelist) {
            console.log(res);
            this.$emit('getPicUrl', { obj: res.data, value: this.mykey });
        },
        getToken() {