浏览代码

fix: 修改分享链接参数

Before 6 月之前
父节点
当前提交
1d6247094d
共有 2 个文件被更改,包括 1 次插入3 次删除
  1. 1 2
      src/app/[locale]/(TabBar)/[[...share]]/@actionWidget/Service.tsx
  2. 0 1
      src/utils/server/index.ts

+ 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,