Your Name 6 anos atrás
pai
commit
17fd5abb97
1 arquivos alterados com 9 adições e 6 exclusões
  1. 9
    6
      src/pages/welcome.vue

+ 9
- 6
src/pages/welcome.vue Ver arquivo

@@ -212,12 +212,15 @@ export default {
212 212
             break
213 213
         }
214 214
       } else {
215
-        this.newData({
216
-          name: !res.person.name ? '' : res.person.name,
217
-          classId: res.person.typeId,
218
-          words: res.taVisitingWords.words,
219
-          url: res.audio
220
-        })
215
+        // 原溪只显示识别出来的人
216
+        if (res.person.name) {
217
+          this.newData({
218
+            name: res.person.name,
219
+            classId: res.person.typeId,
220
+            words: res.taVisitingWords.words,
221
+            url: undefined // res.audio  // 声音不要了
222
+          })
223
+        }
221 224
       }
222 225
     },
223 226
     init () { // 初始化