...
|
...
|
@@ -210,7 +210,7 @@ |
|
|
$('.save').click(function () {
|
|
|
var file = document.getElementById("previewImg").files[0];
|
|
|
console.log(file);
|
|
|
if(file.length != 0){
|
|
|
if(file.length != 0 ){
|
|
|
var formData = new FormData();
|
|
|
formData.append('file',file);
|
|
|
$.ajax({
|
...
|
...
|
@@ -239,6 +239,8 @@ |
|
|
alert("上传失败!");
|
|
|
}
|
|
|
});
|
|
|
}else{
|
|
|
popup('修改成功');
|
|
|
}
|
|
|
|
|
|
})
|
...
|
...
|
|