zengyicheng 4 years ago
parent
commit
b969f015ba
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/components/function.vue

+ 3 - 3
src/components/function.vue

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