mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-25 14:34:46 +00:00
Fixed: Tree icons
This commit is contained in:
@@ -196,18 +196,23 @@ export default {
|
||||
}
|
||||
|
||||
let title = this.title
|
||||
|
||||
if (!title && this.resource) {
|
||||
title = this.resource
|
||||
}
|
||||
|
||||
if (!title) {
|
||||
title = this.$route.meta?.title
|
||||
title = title.replace('List', '').replace('列表', '')
|
||||
title = _.trimEnd(title, 's')
|
||||
}
|
||||
|
||||
if (!title) {
|
||||
title = this.$t('NoTitle')
|
||||
}
|
||||
|
||||
let actionLabel = ''
|
||||
|
||||
if (action === 'clone' || action === 'create') {
|
||||
actionLabel = this.$t('Create')
|
||||
} else if (action === 'update') {
|
||||
@@ -215,7 +220,9 @@ export default {
|
||||
} else if (action === 'detail') {
|
||||
actionLabel = this.$t('Detail')
|
||||
}
|
||||
|
||||
title = actionLabel + this.$t('WordSep') + toLowerCaseExcludeAbbr(title)
|
||||
|
||||
return title
|
||||
},
|
||||
getDefaultDrawer(action) {
|
||||
|
||||
@@ -50,7 +50,8 @@
|
||||
|
||||
|
||||
.ztree li span.button, .view_icon {
|
||||
&.windows_ico_docu {
|
||||
&.windows_ico_docu,
|
||||
&.windows_ad_ico_docu {
|
||||
background: url('./icons/windows.png') no-repeat center left transparent;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user