lex %!s(int64=2) %!d(string=hai) anos
pai
achega
c6b4b179d9

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