From a5f783b056c82747080b075e51a568ad2983a436 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 13 Aug 2024 09:30:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20base=20=E7=99=BB=E5=BD=95=E9=80=89?= =?UTF-8?q?=E9=A1=B9=E9=85=8D=E7=BD=AE/=E6=89=BE=E5=9B=9E=E5=AF=86?= =?UTF-8?q?=E7=A0=81logo=E5=8A=A8=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/components/commonPage.vue | 10 ++++++++-- src/views/login/index.vue | 4 +++- 2 files changed, 11 insertions(+), 3 deletions(-) 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)