还原标准库
This commit is contained in:
@@ -58,10 +58,6 @@ export default {
|
||||
size: {default: 10 * 1024 * 1024},
|
||||
disabled: Boolean,
|
||||
sourceType: {default: () => ['album', 'camera']},
|
||||
withoutToken: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
...mapState(['token']),
|
||||
@@ -143,8 +139,7 @@ export default {
|
||||
uni.hideLoading()
|
||||
} else {
|
||||
this.$http.post(this.api, formData, {
|
||||
params: {type: this.type},
|
||||
withoutToken: this.withoutToken
|
||||
params: {type: this.type}
|
||||
}).then((res) => {
|
||||
if (res?.data) {
|
||||
this.$emit('data', res.data)
|
||||
@@ -167,8 +162,6 @@ export default {
|
||||
this.fileList.push(res.data)
|
||||
} else if (this.api == '/admin/file/add-portrait') {
|
||||
this.fileList.push({url: res.data?.split(";")?.[0], id: res.data?.split(";")?.[1]})
|
||||
}else if (this.api == '/common/upload') { //黑龙江图片上传接口
|
||||
this.fileList.push({fileName: res.data.fileName, filePath: res.data.fileName})
|
||||
}
|
||||
this.$emit("update:def", this.fileList)
|
||||
this.$emit("list", this.fileList)
|
||||
|
||||
Reference in New Issue
Block a user