lex 2 년 전
부모
커밋
c6b4b179d9
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/school/companion-teacher/companion-teacher-register.tsx

+ 3 - 3
src/school/companion-teacher/companion-teacher-register.tsx

@@ -204,17 +204,17 @@ export default defineComponent({
         //授权
         const code = getUrlCode()
         if (!code) {
-          const { returnUrl, ...rest } = route.query
           const newUrl =
             window.location.origin +
             window.location.pathname +
             '#' +
-            returnUrl +
+            route.path +
             '?' +
             qs.stringify({
-              ...rest
+              ...route.query
             })
           getAppIdAndCode(newUrl)
+          return
         } else {
           state.code = code
         }