File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9696 </div >
9797 <q-btn
9898 v-if =" this.isSignupRequest"
99- @click =" this.isSignupRequest = false "
99+ @click =" goBack "
100100 label =" Back"
101101 type =" button"
102102 class =" full-width q-mt-md"
@@ -143,7 +143,15 @@ export default defineComponent({
143143 },
144144
145145 methods: {
146+ syncApiEnvFromQuery () {
147+ const apiEnv = normalizeApiEnv (this .$route .query .env )
148+
149+ this .apiEnv = apiEnv
150+ localStorage .setItem (' apiEnv' , apiEnv)
151+ },
146152 async login () {
153+ this .syncApiEnvFromQuery ()
154+
147155 try {
148156 this .inProgress = true
149157 const message = this .validateForm ()
@@ -174,6 +182,10 @@ export default defineComponent({
174182 this .inProgress = false
175183 }
176184 },
185+ goBack () {
186+ this .syncApiEnvFromQuery ()
187+ this .isSignupRequest = false
188+ },
177189 checkEmail (val ) {
178190 return (
179191 (val && / ^ [^ \s @] + @[^ \s @] + \. [^ \s @] + $ / .test (val)) ||
@@ -220,6 +232,8 @@ export default defineComponent({
220232 }
221233 },
222234 async signup () {
235+ this .syncApiEnvFromQuery ()
236+
223237 if (! this .isSignupRequest ) {
224238 this .isSignupRequest = true
225239 return
You can’t perform that action at this time.
0 commit comments