登录页浏览器推荐国际化问题
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
0e71a32c58
commit
4c37ebef3e
|
@ -119,7 +119,12 @@
|
||||||
{{ $t("login:button:login") }}
|
{{ $t("login:button:login") }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<div style="text-align: right">
|
<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? -->
|
<!-- Forget password? -->
|
||||||
<el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
|
@ -261,6 +266,17 @@ export default {
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(["asyncRoutes", "routes", "language"]),
|
...mapGetters(["asyncRoutes", "routes", "language"]),
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
"$i18n.locale": {
|
||||||
|
handler() {
|
||||||
|
if (this.$refs.browserTip) {
|
||||||
|
this.$refs.browserTip.open();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
deep: true,
|
||||||
|
immediate: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.loginType = this.$route.query.loginType;
|
this.loginType = this.$route.query.loginType;
|
||||||
this.location = this.$route.query.location;
|
this.location = this.$route.query.location;
|
||||||
|
|
Loading…
Reference in New Issue