Skip to content

Commit 45d72a6

Browse files
committed
feat: add job
1 parent fb2c852 commit 45d72a6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/layout/components/Settings/index.vue

+18
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@
2222
<span>{{ $t('settings.sidebarLogo') }}</span>
2323
<el-switch v-model="sidebarLogo" class="drawer-switch" />
2424
</div>
25+
<a v-if="isShowJob" href="https://panjiachen.github.io/vue-element-admin-site/zh/job/" target="_blank" class="job-link">
26+
<el-alert
27+
title="部门目前非常缺人!有兴趣的可以点击了解详情。坐标: 字节跳动"
28+
type="success"
29+
:closable="false"
30+
/>
31+
</a>
2532

2633
</div>
2734
</div>
@@ -36,6 +43,9 @@ export default {
3643
return {}
3744
},
3845
computed: {
46+
isShowJob() {
47+
return this.$store.getters.language === 'zh'
48+
},
3949
fixedHeader: {
4050
get() {
4151
return this.$store.state.settings.fixedHeader
@@ -104,5 +114,13 @@ export default {
104114
.drawer-switch {
105115
float: right
106116
}
117+
118+
.job-link{
119+
display: block;
120+
position: absolute;
121+
width: 100%;
122+
left: 0;
123+
bottom: 0;
124+
}
107125
}
108126
</style>

0 commit comments

Comments
 (0)