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
         }