chenxiong hace 3 años
padre
commit
041eb15f27
Se han modificado 1 ficheros con 4 adiciones y 3 borrados
  1. 4 3
      pages2/verify/input.vue

+ 4 - 3
pages2/verify/input.vue

@@ -702,7 +702,7 @@ export default {
 			console.log(lists[0].url);
 			if (lists.length) {
 				this.fileList1 = lists;
-				if (lists[0].url.indexOf('//tmp') !== -1) {
+				if (lists[0].url.indexOf('//tmp') !== -1 || lists[0].url.indexOf('//temp') !== -1) {
 					this.$set(this.form, 'recent_photos', await this.$method.imageInfos(lists[0].url));
 				}
 			} else {
@@ -718,7 +718,8 @@ export default {
 		async changePhotoListHeader2(lists, name) {
 			if (lists.length) {
 				this.fileList2 = lists;
-				if (lists[0].url.indexOf('//tmp') !== -1) {
+				console.log(lists,'lists')
+				if (lists[0].url.indexOf('//tmp') !== -1 || lists[0].url.indexOf('//temp') !== -1) {
 					this.$set(this.form, 'idcard_face_photo', await this.$method.imageInfos(lists[0].url));
 				}
 			} else {
@@ -732,7 +733,7 @@ export default {
 		async changePhotoListHeader3(lists, name) {
 			if (lists.length) {
 				this.fileList3 = lists;
-				if (lists[0].url.indexOf('//tmp') !== -1) {
+				if (lists[0].url.indexOf('//tmp') !== -1 || lists[0].url.indexOf('//temp') !== -1) {
 					this.$set(this.form, 'idcard_national_photo', await this.$method.imageInfos(lists[0].url));
 				}
 			} else {