소스 검색

处理wxid

armg 2 주 전
부모
커밋
ac5a150729
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/router/index.ts

+ 1 - 1
src/router/index.ts

@@ -109,7 +109,7 @@ router.beforeEach(async (to, from, next) => {
     const isNewLoginMode = sessionStorage.getItem('isNewLoginMode') === 'true';
     if (isNewLoginMode) {
       if(wxid){
-        window.localStorage.setItem('weChat', wxid);
+        window.localStorage.setItem('weChat', JSON.stringify(wxid));
       }
       await handleWxidLoginMode(to, next, wxid, WecomType);
     } else {