feat: add job

This commit is contained in:
花裤衩 2019-10-12 19:29:31 +08:00
parent fb2c852a0c
commit 45d72a6ef5
1 changed files with 18 additions and 0 deletions

View File

@ -22,6 +22,13 @@
<span>{{ $t('settings.sidebarLogo') }}</span> <span>{{ $t('settings.sidebarLogo') }}</span>
<el-switch v-model="sidebarLogo" class="drawer-switch" /> <el-switch v-model="sidebarLogo" class="drawer-switch" />
</div> </div>
<a v-if="isShowJob" href="https://panjiachen.github.io/vue-element-admin-site/zh/job/" target="_blank" class="job-link">
<el-alert
title="部门目前非常缺人!有兴趣的可以点击了解详情。坐标: 字节跳动"
type="success"
:closable="false"
/>
</a>
</div> </div>
</div> </div>
@ -36,6 +43,9 @@ export default {
return {} return {}
}, },
computed: { computed: {
isShowJob() {
return this.$store.getters.language === 'zh'
},
fixedHeader: { fixedHeader: {
get() { get() {
return this.$store.state.settings.fixedHeader return this.$store.state.settings.fixedHeader
@ -104,5 +114,13 @@ export default {
.drawer-switch { .drawer-switch {
float: right float: right
} }
.job-link{
display: block;
position: absolute;
width: 100%;
left: 0;
bottom: 0;
}
} }
</style> </style>