liyongli hai 1 ano
pai
achega
cd6a951aa5
Modificáronse 1 ficheiros con 7 adicións e 4 borrados
  1. 7 4
      src/view/analysis/index.vue

+ 7 - 4
src/view/analysis/index.vue

@@ -16,7 +16,11 @@
           </van-button>
         </div>
       </van-form>
-      <video v-if="url" :src="url"></video>
+      <van-divider v-if="url">解析结果</van-divider>
+      <div
+        style="padding: 1em; word-wrap: break-word; white-space: normal"
+        v-text="url"
+      ></div>
     </div>
   </div>
 </template>
@@ -38,9 +42,8 @@ const url = ref('');
 const onSubmit = () => {
   getdouyinurl(username.value).then(r => {
     console.log(r);
-    // url.value = location.protocol + r;
-    url.value = 'https:' + r;
-
+    const pro = username.value.split('://')[0];
+    url.value = pro + r;
   });
 };
 </script>