feat: 页脚增加项目跳转地址 (#3712)

This commit is contained in:
ssongliu 2024-01-26 13:46:13 +08:00 committed by GitHub
parent 527c8143a1
commit 4eb34f24d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,6 +9,10 @@
<span>{{ $t('setting.doc2') }}</span>
</el-button>
<el-divider direction="vertical" />
<el-button type="primary" link @click="toGithub">
<span>{{ $t('setting.project') }}</span>
</el-button>
<el-divider direction="vertical" />
</span>
<span class="version">{{ $t('setting.currentVersion') + version }}</span>
<el-badge is-dot class="item" v-if="version !== 'Waiting' && globalStore.hasNewVersion">
@ -103,6 +107,10 @@ const toForum = () => {
window.open('https://bbs.fit2cloud.com/c/1p/7', '_blank');
};
const toGithub = () => {
window.open('https://github.com/1Panel-dev/1Panel', '_blank', 'noopener,noreferrer');
};
const onLoadUpgradeInfo = async () => {
loading.value = true;
await loadUpgradeInfo()