|
@@ -51,7 +51,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
- ...mapMutations(["toggleSnapNow"]),
|
|
|
+ ...mapMutations(["toggleSnapNow", "decreaseSnapCount"]),
|
|
|
async openCamera() {
|
|
|
const video = this.$refs.video;
|
|
|
if (navigator.mediaDevices && navigator.mediaDevices.getUserMedia) {
|
|
@@ -80,7 +80,7 @@ export default {
|
|
|
const [fileName, captureFilePath] = await this.uploadToServer(
|
|
|
captureBlob
|
|
|
);
|
|
|
-
|
|
|
+ this.decreaseSnapCount();
|
|
|
await this.faceCompare(fileName, captureFilePath);
|
|
|
const video = this.$refs.video;
|
|
|
video && video.play();
|