增加配置

This commit is contained in:
BianLzhaoMin 2025-01-15 10:09:35 +08:00
parent d1cab21626
commit 28b58646c2
1 changed files with 38 additions and 0 deletions

View File

@ -119,6 +119,44 @@ export default {
cancel() {
this.addSwiperVisible = false;
},
//
handleBeforeUpload(file) {
// const isSvg = this.fileType.some((e) => file.type.includes(e));
// if (!isSvg) {
// this.$modal.msgError(
// `, ${this.fileType.join("")}!`
// );
// return false;
// }
// const isLt = file.size / 1024 / 1024 < 3;
// if (!isLt) {
// this.$modal.msgError(`LOGO 3 MB`);
// return false;
// }
// this.$modal.loading("...");
},
//
handleRemove(file) {
// this.addOrEditForm.fileList = this.addOrEditForm.fileList.filter(
// (item) => item.uid !== file.uid
// );
// this.addOrEditForm.logo = "";
},
// LOGO
handlePreview(file) {
// this.dialogInnerVisible = true;
// this.previewUrl = file.url;
},
//
handleSuccess(res) {
// if (res.code === 200) {
// this.addOrEditForm.logo = res.data.url;
// } else {
// this.addOrEditForm.fileList = [];
// this.addOrEditForm.logo = "";
// }
// this.$modal.closeLoading();
},
},
};
</script>