|
@@ -78,13 +78,13 @@
|
|
|
<div v-if="isCamera" class="isPhoto">
|
|
|
<!--canvas截取流-->
|
|
|
<span>截取的图片</span>
|
|
|
- <div style="width:500px;overflow:auto;display:flex">
|
|
|
+ <div style="width: 500px; overflow: auto; display: flex">
|
|
|
<img
|
|
|
v-for="(res, index) in sampleArr"
|
|
|
:key="index"
|
|
|
:src="res.img[0]"
|
|
|
alt=""
|
|
|
- style="margin-right:10px"
|
|
|
+ style="margin-right: 10px"
|
|
|
/>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -186,7 +186,7 @@ export default {
|
|
|
_this.count += 1;
|
|
|
if (_this.count > 10) {
|
|
|
_this.isdetected = "已检测到人脸";
|
|
|
- this.fnRun();
|
|
|
+ _this.fnRun();
|
|
|
}
|
|
|
} else {
|
|
|
_this.count -= 1;
|