perf: Optimize some styles

This commit is contained in:
wangdan-fit2cloud 2025-12-16 11:37:04 +08:00
parent bf86e19fb6
commit 894454e956
4 changed files with 12 additions and 5 deletions

View File

@ -10,7 +10,7 @@
</el-avatar>
</slot>
</div>
<div style="width: 90%">
<div style="width: 90%" class="mt-4">
<slot name="title">
<span class="ellipsis-1" :title="title" style="width: 80%">
{{ title }}
@ -118,7 +118,7 @@ function subHoveredEnter() {
.status-tag {
position: absolute;
right: 16px;
top: 15px;
top: 14px;
}
}
</style>

View File

@ -38,7 +38,7 @@ import { SourceTypeEnum } from '@/enums/common'
import KnowledgeApi from '@/api/knowledge/knowledge'
import ApplicationApi from '@/api/application/application'
import ToolApi from '@/api/tool/tool'
const { folder, application } = useStore()
const { folder } = useStore()
const emit = defineEmits(['refresh'])
const props = defineProps({

View File

@ -35,6 +35,8 @@
// tree
.el-tree {
background: none;
color: var(--el-text-color-primary);
font-weight: 400;
}
.el-tree-node__content {
border-radius: var(--el-border-radius-base);
@ -46,6 +48,7 @@
.el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {
background: var(--el-color-primary-light-9);
color: var(--el-color-primary);
font-weight: 500;
}
.el-tree-node__expand-icon {
color: var(--app-text-color-secondary);

View File

@ -365,8 +365,11 @@ function openMoveToDialog(data: any) {
}
function refreshApplicationList(row: any) {
const index = applicationList.value.findIndex((v) => v.id === row.id)
applicationList.value.splice(index, 1)
//
if (folder.currentFolder?.parent_id) {
const index = applicationList.value.findIndex((v) => v.id === row.id)
applicationList.value.splice(index, 1)
}
}
const goApp = (item: any) => {
@ -650,6 +653,7 @@ function getFolder(bool?: boolean) {
.asyncGetFolder(SourceTypeEnum.APPLICATION, params, apiType.value, loading)
.then((res: any) => {
folderList.value = res.data
if (bool) {
//
folder.setCurrentFolder(res.data?.[0] || {})