lex 8 mēneši atpakaļ
vecāks
revīzija
a95e07b2a5
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      src/views/hook/useFee.ts

+ 2 - 2
src/views/hook/useFee.ts

@@ -12,7 +12,7 @@ export const gotoMemberCenter = () => {
     pathname = '/mdaya/'
   }
   if (browserInfo.isApp) {
-    const url = window.location.origin + `/#/member`;
+    const url = window.location.origin + pathname + `#/member`;
     postMessage({
       api: 'openWebView',
       content: {
@@ -22,7 +22,7 @@ export const gotoMemberCenter = () => {
     });
     return;
   }
-  location.href = location.origin + `/#/member`;
+  location.href = window.location.origin + pathname + `#/member`;
 };
 
 /**验证是否是会员 */