Browse Source

fix: 修改分享链接参数

Before 6 months ago
parent
commit
1d6247094d

+ 1 - 2
src/app/[locale]/(TabBar)/[[...share]]/@actionWidget/Service.tsx

@@ -293,9 +293,8 @@ const ServiceWidget: FC<Props> = (props) => {
         setSocials(socials);
 
         // 分享地址
-        if (serach.size > 1 && localStorage.getItem("share_url") !== window.location.href) {
+        if (serach.get("ch")) {
             getShareApi({ channel_url: window.location.href });
-            localStorage.setItem("share_url", window.location.href);
         }
     }, []);
 

+ 0 - 1
src/utils/server/index.ts

@@ -51,7 +51,6 @@ class Server {
         options = requestInterceptor(options);
         const { method = "GET", url, headers = {}, data = {}, body, ...other } = options;
         const params = JSON.stringify(data);
-        console.log(`🚀🚀🚀🚀🚀-> in index.ts on 54`, url);
         try {
             const response = await fetch(`${config.NEXT_PUBLIC_BASE_URL}${url}`, {
                 method: method,