Parcourir la source

Merge branch 'master' into jenkins

lex il y a 2 ans
Parent
commit
fdb53e30ab
1 fichiers modifiés avec 2 ajouts et 3 suppressions
  1. 2 3
      src/school/companion-teacher/companion-teacher-register.tsx

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

@@ -204,15 +204,14 @@ 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