修改
This commit is contained in:
parent
57f26e2df0
commit
c9c1b6a7bd
@ -217,6 +217,7 @@ export default {
|
|||||||
// 上传图片
|
// 上传图片
|
||||||
uploadImg() {
|
uploadImg() {
|
||||||
let formData = new FormData();
|
let formData = new FormData();
|
||||||
|
if (this.previews.data) {
|
||||||
formData.append("file", this.previews.data);
|
formData.append("file", this.previews.data);
|
||||||
formData.append("type", this.types);
|
formData.append("type", this.types);
|
||||||
updateNurseStationHeads(formData).then((response) => {
|
updateNurseStationHeads(formData).then((response) => {
|
||||||
@ -230,6 +231,9 @@ export default {
|
|||||||
}
|
}
|
||||||
this.openimg = false;
|
this.openimg = false;
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
this.openimg = false;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 实时预览
|
// 实时预览
|
||||||
realTime(data) {
|
realTime(data) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user