Fixed: Tree icons

This commit is contained in:
zhaojisen
2025-06-26 15:19:28 +08:00
committed by ZhaoJiSen
parent aaca037e02
commit 6715465dda
2 changed files with 9 additions and 1 deletions

View File

@@ -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) {

View File

@@ -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;
}