Merge branch 'copy'

This commit is contained in:
Apcallover
2024-02-27 14:44:25 +08:00
2 changed files with 7 additions and 118 deletions

View File

@@ -148,8 +148,11 @@ const accept = [
];
function getPath(path) {
const arr = path.split(",");
return arr[arr.length - 1];
if(path) {
const arr = path.split(",");
return arr[arr.length - 1];
}
return path
}
export default {
@@ -829,9 +832,10 @@ export default {
this.obj.address = form.address + (form.title || "");
this.obj.lat = form.lat;
this.obj.lon = form.lng;
this.form.companyAddress = form.address + (form.title || "");
},
addressDel(){
this.obj.address = "";
this.form.companyAddress = this.obj.address = "";
},
// uploadBefore(file, done, loading) {
// const isLt2M = file.size / 1024 / 1024 < 2;