还原标准库

This commit is contained in:
liuye
2024-09-25 16:23:42 +08:00
parent dd597dacdf
commit 1d043ba4b8
21 changed files with 2 additions and 2813 deletions

View File

@@ -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)