瀏覽代碼

Fix registration error with email language selected

tusooa 1 年之前
父節點
當前提交
65d78ced93
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 2 2
      src/components/registration/registration.js
  2. 1 0
      src/components/registration/registration.vue

+ 2 - 2
src/components/registration/registration.js

@@ -16,7 +16,7 @@ const registration = {
       confirm: '',
       birthday: '',
       reason: '',
-      language: ''
+      language: ['']
     },
     captcha: {}
   }),
@@ -100,7 +100,7 @@ const registration = {
       this.user.captcha_token = this.captcha.token
       this.user.captcha_answer_data = this.captcha.answer_data
       if (this.user.language) {
-        this.user.language = localeService.internalToBackendLocale(this.user.language)
+        this.user.language = localeService.internalToBackendLocaleMulti(this.user.language.filter(k => k))
       }
 
       this.v$.$touch()

+ 1 - 0
src/components/registration/registration.vue

@@ -210,6 +210,7 @@
                 :prompt-text="$t('registration.email_language')"
                 :language="v$.user.language.$model"
                 :set-language="val => v$.user.language.$model = val"
+                @click.stop.prevent
               />
             </div>