|
|
@@ -2840,10 +2840,14 @@ export default {
|
|
|
}
|
|
|
this.getPhotoTypeList();
|
|
|
this.info();
|
|
|
+ // 拍照次数重置
|
|
|
+ store.dispatch('setShotsNum', 0);
|
|
|
},
|
|
|
watch: {
|
|
|
$route(to, from) {
|
|
|
if (from.path == '/addStoreVisit') {
|
|
|
+ // 离开当前页面时,关闭弹框
|
|
|
+ this.show = false;
|
|
|
if (this.$refs.uploadVNormal) this.$refs.uploadVNormal.close();
|
|
|
}
|
|
|
},
|
|
|
@@ -2864,8 +2868,6 @@ export default {
|
|
|
this.indexselect = 1;
|
|
|
}
|
|
|
this.getPhotoTypeList();
|
|
|
- // 拍照次数重置
|
|
|
- store.dispatch('setShotsNum', 0);
|
|
|
},
|
|
|
methods: {
|
|
|
viewSM() {
|