diff --git a/src/views/login/components/commonPage.vue b/src/views/login/components/commonPage.vue index 5d789186..9946de7a 100644 --- a/src/views/login/components/commonPage.vue +++ b/src/views/login/components/commonPage.vue @@ -3,8 +3,8 @@
{{title}}
@@ -27,6 +27,12 @@ export default { props: { title: { type: String, default: "" } + }, + data() { + return { + baseName: this.$store.state.global.baseName, + baseLogo: this.$store.state.global.baseLogo + } } } diff --git a/src/views/login/index.vue b/src/views/login/index.vue index beff8151..38e42be3 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -133,7 +133,6 @@ export default { loginType:'password', loginTypeOptions: [ {label: "账号登录", value: "password"}, - {label: "手机登录", value: "phone"}, ] } }, @@ -188,6 +187,9 @@ export default { if (that.baseConfig.base_right == undefined || that.baseConfig.base_right == null) { that.baseConfig.base_right = "中存大数据"; } + if (that.baseConfig.base_login_phone == 1) { + that.loginTypeOptions.push({label: "手机登录", value: "phone"}) + } that.$store.commit("SET_baseName", res.base.base_name); that.$store.commit("SET_baseLogo", res.base.base_logo); that.$TOOL.data.set("BASE_INFO", res)