feat: base 登录选项配置/找回密码logo动态
This commit is contained in:
parent
9bc030df31
commit
a5f783b056
|
@ -3,8 +3,8 @@
|
|||
<el-header style="height:50px;">
|
||||
<div class="common-header-left">
|
||||
<div class="common-header-logo">
|
||||
<img :alt="$CONFIG.APP_NAME" src="img/bbmg.jpg">
|
||||
<label>{{$CONFIG.APP_NAME}}</label>
|
||||
<img :alt="baseName" :src="baseLogo">
|
||||
<label>{{ baseName }}</label>
|
||||
</div>
|
||||
<div class="common-header-title">{{title}}</div>
|
||||
</div>
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue