mirror of
https://github.com/eoao/cloud-mail.git
synced 2026-05-06 13:41:43 +08:00
新增设置登录项目github图标隐藏
This commit is contained in:
@@ -140,7 +140,7 @@
|
||||
</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<a class="github" href="https://github.com/maillab/cloud-mail">
|
||||
<a v-show="settingStore.settings.projectLink" class="github" href="https://github.com/maillab/cloud-mail">
|
||||
<Icon icon="mingcute:github-line" color="#1890ff" width="20" height="20" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -49,6 +49,7 @@ const settingService = {
|
||||
|
||||
|
||||
let linuxdoSwitch = c.env.linuxdo_switch;
|
||||
let projectLink = c.env.project_link;
|
||||
|
||||
if (typeof linuxdoSwitch === 'string' && linuxdoSwitch === 'true') {
|
||||
linuxdoSwitch = true
|
||||
@@ -58,6 +59,18 @@ const settingService = {
|
||||
linuxdoSwitch = false
|
||||
}
|
||||
|
||||
console.log(projectLink)
|
||||
|
||||
if (typeof projectLink === 'string' && projectLink === 'false') {
|
||||
projectLink = false
|
||||
} else if (projectLink === false) {
|
||||
projectLink = false
|
||||
} else {
|
||||
projectLink = true
|
||||
}
|
||||
|
||||
setting.projectLink = projectLink;
|
||||
|
||||
setting.linuxdoClientId = c.env.linuxdo_client_id;
|
||||
setting.linuxdoCallbackUrl = c.env.linuxdo_callback_url;
|
||||
setting.linuxdoSwitch = linuxdoSwitch;
|
||||
@@ -204,7 +217,8 @@ const settingService = {
|
||||
linuxdoClientId: settingRow.linuxdoClientId,
|
||||
linuxdoCallbackUrl: settingRow.linuxdoCallbackUrl,
|
||||
linuxdoSwitch: settingRow.linuxdoSwitch,
|
||||
minEmailPrefix: settingRow.minEmailPrefix
|
||||
minEmailPrefix: settingRow.minEmailPrefix,
|
||||
projectLink: settingRow.projectLink
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user