mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-01 23:18:17 +00:00
feat: 概览页公告添加跳转链接
This commit is contained in:
parent
353ab4467b
commit
833dd305bf
@ -7,6 +7,12 @@
|
||||
<li v-if="announcement.content" class="item">
|
||||
<span class="item-title">【{{ announcement.subject }}】</span>
|
||||
<span>{{ announcement.content }}</span>
|
||||
<span v-if="announcement.link">
|
||||
<el-link :href="announcement.link" target="_blank" class="item-url">
|
||||
{{ $t('common.ViewMore') }}
|
||||
</el-link>
|
||||
<i class="fa fa-share-square-o icon-url" />
|
||||
</span>
|
||||
</li>
|
||||
<li v-else class="other">{{ $t('common.noAnnouncement') }}</li>
|
||||
</ul>
|
||||
@ -66,8 +72,14 @@ ul,li {
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
.item-url {
|
||||
color: #8b9db6!important;
|
||||
}
|
||||
.other {
|
||||
text-align: center;
|
||||
}
|
||||
.icon-url {
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<Page>
|
||||
<div v-if="$hasPerm('rbac.view_resourcestatistics')" class="home">
|
||||
<div class="home">
|
||||
<el-container class="container">
|
||||
<el-main class="main">
|
||||
<div class="content">
|
||||
@ -21,7 +21,6 @@
|
||||
</el-main>
|
||||
</el-container>
|
||||
</div>
|
||||
<Page403 v-else />
|
||||
</Page>
|
||||
</template>
|
||||
|
||||
@ -32,7 +31,6 @@ import Announcement from './components/Announcement'
|
||||
import Ticket from './components/Ticket'
|
||||
import Log from './components/LoginLog'
|
||||
import Session from './components/Session'
|
||||
import Page403 from '@/views/403'
|
||||
|
||||
export default {
|
||||
name: 'Name',
|
||||
@ -42,8 +40,7 @@ export default {
|
||||
Announcement,
|
||||
Ticket,
|
||||
Log,
|
||||
Session,
|
||||
Page403
|
||||
Session
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user