feat: base 登录选项配置/找回密码logo动态

This commit is contained in:
caoqianming 2024-08-13 09:30:01 +08:00
parent 9bc030df31
commit a5f783b056
2 changed files with 11 additions and 3 deletions

View File

@ -3,8 +3,8 @@
<el-header style="height:50px;"> <el-header style="height:50px;">
<div class="common-header-left"> <div class="common-header-left">
<div class="common-header-logo"> <div class="common-header-logo">
<img :alt="$CONFIG.APP_NAME" src="img/bbmg.jpg"> <img :alt="baseName" :src="baseLogo">
<label>{{$CONFIG.APP_NAME}}</label> <label>{{ baseName }}</label>
</div> </div>
<div class="common-header-title">{{title}}</div> <div class="common-header-title">{{title}}</div>
</div> </div>
@ -27,6 +27,12 @@
export default { export default {
props: { props: {
title: { type: String, default: "" } title: { type: String, default: "" }
},
data() {
return {
baseName: this.$store.state.global.baseName,
baseLogo: this.$store.state.global.baseLogo
}
} }
} }
</script> </script>

View File

@ -133,7 +133,6 @@ export default {
loginType:'password', loginType:'password',
loginTypeOptions: [ loginTypeOptions: [
{label: "账号登录", value: "password"}, {label: "账号登录", value: "password"},
{label: "手机登录", value: "phone"},
] ]
} }
}, },
@ -188,6 +187,9 @@ export default {
if (that.baseConfig.base_right == undefined || that.baseConfig.base_right == null) { if (that.baseConfig.base_right == undefined || that.baseConfig.base_right == null) {
that.baseConfig.base_right = "中存大数据"; 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_baseName", res.base.base_name);
that.$store.commit("SET_baseLogo", res.base.base_logo); that.$store.commit("SET_baseLogo", res.base.base_logo);
that.$TOOL.data.set("BASE_INFO", res) that.$TOOL.data.set("BASE_INFO", res)