فهرست منبع

修改分享链接进入

wangfumin 3 ماه پیش
والد
کامیت
bfeeedc4ed
2فایلهای تغییر یافته به همراه12 افزوده شده و 11 حذف شده
  1. 11 11
      src/app.vue
  2. 1 0
      src/views/tagging/hot/index.vue

+ 11 - 11
src/app.vue

@@ -84,17 +84,17 @@ const stopWatch = watch(
     }
 
     // 单页面 非自己查看需要密码校验
-    // if (currentLayout.value === RoutesName.show && !params.share) {
-    //   inputPwd.value = true;
-    //   await new Promise<void>((resolve) => {
-    //     const stopInputWatch = watchEffect(() => {
-    //       if (!inputPwd.value) {
-    //         stopInputWatch();
-    //         resolve();
-    //       }
-    //     });
-    //   });
-    // }
+    if (currentLayout.value === RoutesName.show && !params.share) {
+      inputPwd.value = true;
+      await new Promise<void>((resolve) => {
+        const stopInputWatch = watchEffect(() => {
+          if (!inputPwd.value) {
+            stopInputWatch();
+            resolve();
+          }
+        });
+      });
+    }
 
     params.share = true;
     await refreshCase();

+ 1 - 0
src/views/tagging/hot/index.vue

@@ -73,6 +73,7 @@ import { taggingsGroup } from "@/sdk";
 const showSearch = ref(false);
 const type = ref<TaggingStyle["typeId"]>(-1);
 const keyword = ref("");
+console.log(taggings.value, 8888)
 const filterTaggings = computed(() =>
   taggings.value.filter((tagging) => {
     if (!tagging.title.includes(keyword.value)) return false;