feat:新增github入口

This commit is contained in:
Xwen
2024-01-03 23:39:36 +08:00
parent b199b24b23
commit cba119e116
2 changed files with 30 additions and 15 deletions

View File

@@ -63,11 +63,16 @@
</el-dropdown-menu>
</template>
</el-dropdown>
<div class="author" @click="handleGitClick">
<el-tooltip effect="dark" content="gitee找到我们" placement="bottom">
<img src="@/assets/common/icons/gitee.png" alt="" />
</el-tooltip>
</div>
</div>
<div class="gitee" @click="handleGitClick">
<el-tooltip effect="dark" content="在gitee找到我们" placement="bottom">
<img src="@/assets/common/icons/gitee.png" alt="" />
</el-tooltip>
</div>
<div class="github" @click="handleGithubClick">
<el-tooltip effect="dark" content="在github找到我们" placement="bottom">
<img src="@/assets/common/icons/github.png" alt="" />
</el-tooltip>
</div>
</div>
</template>
@@ -128,6 +133,9 @@ const isLogin = getToken("AccessToken") ? true : false;
const handleGitClick = () => {
window.open("https://gitee.com/ccnetcore/Yi");
};
const handleGithubClick = () => {
window.open("https://github.com/ccnetcore/Yi.Abp.Admin");
};
</script>
<style scoped lang="scss">
@@ -141,22 +149,29 @@ const handleGitClick = () => {
.user {
display: flex;
align-items: center;
.author {
cursor: pointer;
width: 25px;
height: 25px;
margin-left: 20px;
img {
width: 100%;
height: 100%;
}
}
.el-dropdown-link {
cursor: pointer;
display: flex;
align-items: center;
}
}
.gitee,
.github {
cursor: pointer;
width: 25px;
height: 25px;
position: fixed;
right: 150px;
margin-left: 10px;
img {
width: 100%;
height: 100%;
}
}
.github {
right: 100px;
}
.logo {
cursor: pointer;
display: flex;