登录页浏览器推荐国际化问题
continuous-integration/drone/push Build is passing Details

uat_us
DESKTOP-6C3NK6N\WXS 2024-08-08 16:40:48 +08:00
parent 0e71a32c58
commit 4c37ebef3e
1 changed files with 17 additions and 1 deletions

View File

@ -119,7 +119,12 @@
{{ $t("login:button:login") }}
</el-button>
<div style="text-align: right">
<TopLang v-if="VUE_APP_OSS_CONFIG_REGION !== 'oss-us-west-1'&& NODE_ENV !== 'usa'" />
<TopLang
v-if="
VUE_APP_OSS_CONFIG_REGION !== 'oss-us-west-1' &&
NODE_ENV !== 'usa'
"
/>
<!-- Forget password? -->
<el-button
type="text"
@ -261,6 +266,17 @@ export default {
computed: {
...mapGetters(["asyncRoutes", "routes", "language"]),
},
watch: {
"$i18n.locale": {
handler() {
if (this.$refs.browserTip) {
this.$refs.browserTip.open();
}
},
deep: true,
immediate: true,
},
},
mounted() {
this.loginType = this.$route.query.loginType;
this.location = this.$route.query.location;