Browse Source

优化细节

Caner 2 years ago
parent
commit
0f47ad4bc2
4 changed files with 4 additions and 4 deletions
  1. 2 1
      .eslintrc.json
  2. 1 1
      index.html
  3. 0 1
      loading.html
  4. 1 1
      src/components/record.vue

+ 2 - 1
.eslintrc.json

@@ -35,6 +35,7 @@
     "vue/v-on-event-hyphenation": 0,
     "no-promise-executor-return": 0,
     "no-shadow": 0,
-    "prefer-destructuring": 1
+    "prefer-destructuring": 1,
+    "no-new": 0
   }
 }

+ 1 - 1
index.html

@@ -3,7 +3,7 @@
 
 <head>
   <meta charset="UTF-8" />
-  <title>Contrl</title>
+  <title>控制端</title>
   <style>
     video,
     #app,

+ 0 - 1
loading.html

@@ -4,7 +4,6 @@
     <meta charset="UTF-8">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <title>loading</title>
     <style>
         .loader {
         border: 5px solid #f3f3f3;

+ 1 - 1
src/components/record.vue

@@ -46,7 +46,7 @@ async function initRecorder() {
     } else {
       txt = '未获取到音频设备'
     }
-    alert(txt)
+    new window.Notification(txt)
   }
 }