Commit daf2f540 by 刘海龙

111

parent c44aa117
...@@ -129,8 +129,6 @@ ...@@ -129,8 +129,6 @@
this.uploadName = name; this.uploadName = name;
if (this.uploadName === 'front_view') { if (this.uploadName === 'front_view') {
$("#file").click(); $("#file").click();
var file = document.getElementById('file');
file.outerHTML = file.outerHTML; //重新初始化了file的html
} }
if (this.uploadName === 'back_view') { if (this.uploadName === 'back_view') {
$("#file2").click(); $("#file2").click();
...@@ -172,6 +170,8 @@ ...@@ -172,6 +170,8 @@
} else { } else {
if (_this.uploadName === 'front_view') { if (_this.uploadName === 'front_view') {
_this.form.front_view = str.data.url; _this.form.front_view = str.data.url;
var file = document.getElementById('file');
file.outerHTML = file.outerHTML; //重新初始化了file的html
} }
if (_this.uploadName === 'back_view') { if (_this.uploadName === 'back_view') {
_this.form.back_view = str.data.url; _this.form.back_view = str.data.url;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment