mirror of
https://github.com/jumpserver/lina.git
synced 2025-04-28 03:20:24 +00:00
[Update] 修改logo
This commit is contained in:
parent
34a6c08f2d
commit
695e23b423
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
@ -3,11 +3,11 @@
|
||||
<transition name="sidebarLogoFade">
|
||||
<router-link v-if="collapse" key="collapse" class="sidebar-logo-link" to="/">
|
||||
<img v-if="logo" :src="logo" class="sidebar-logo">
|
||||
<h1 v-else class="sidebar-title">{{ title }} </h1>
|
||||
<h1 v-else class="sidebar-title">{{ title }}</h1>
|
||||
</router-link>
|
||||
<router-link v-else key="expand" class="sidebar-logo-link" to="/">
|
||||
<img v-if="logo" :src="logo" class="sidebar-logo">
|
||||
<h1 class="sidebar-title">{{ title }} </h1>
|
||||
<img v-if="logoText" :src="logoText" class="sidebar-logo-text">
|
||||
<!-- <h1 class="sidebar-title">{{ title }}</h1>-->
|
||||
</router-link>
|
||||
</transition>
|
||||
</div>
|
||||
@ -24,8 +24,9 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
title: 'Vue Admin Template',
|
||||
logo: 'https://wpimg.wallstcn.com/69a1c46c-eb1c-4b46-8bd4-e9e686ef5251.png'
|
||||
title: 'JumpServer',
|
||||
logoText: require('@/assets/img/logo-text.png'),
|
||||
logo: require('@/assets/img/logo.png')
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -58,6 +59,13 @@ export default {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
vertical-align: middle;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
& .sidebar-logo-text {
|
||||
width: 165px;
|
||||
height: 50px;
|
||||
vertical-align: middle;
|
||||
margin-right: 12px;
|
||||
}
|
||||
|
||||
|
@ -71,7 +71,7 @@ export const constantRoutes = [
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/assets/',
|
||||
path: '/static/',
|
||||
component: Layout,
|
||||
name: 'assets',
|
||||
meta: { title: 'assets', icon: 'user' },
|
||||
@ -147,7 +147,7 @@ export const constantRoutes = [
|
||||
meta: { title: 'perms', icon: 'user' },
|
||||
children: [
|
||||
{
|
||||
path: 'assets-permissions',
|
||||
path: 'static-permissions',
|
||||
name: 'assetPermissionList',
|
||||
component: () => import('@/views/table/index'),
|
||||
meta: { title: 'assetPermissionList' }
|
||||
|
@ -26,7 +26,7 @@ module.exports = {
|
||||
*/
|
||||
publicPath: '/',
|
||||
outputDir: 'dist',
|
||||
assetsDir: 'static',
|
||||
assetsDir: 'assets',
|
||||
lintOnSave: process.env.NODE_ENV === 'development',
|
||||
productionSourceMap: false,
|
||||
devServer: {
|
||||
|
Loading…
Reference in New Issue
Block a user