Skip to content

Commit 894454e

Browse files
perf: Optimize some styles
1 parent bf86e19 commit 894454e

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

ui/src/components/card-box/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</el-avatar>
1111
</slot>
1212
</div>
13-
<div style="width: 90%">
13+
<div style="width: 90%" class="mt-4">
1414
<slot name="title">
1515
<span class="ellipsis-1" :title="title" style="width: 80%">
1616
{{ title }}
@@ -118,7 +118,7 @@ function subHoveredEnter() {
118118
.status-tag {
119119
position: absolute;
120120
right: 16px;
121-
top: 15px;
121+
top: 14px;
122122
}
123123
}
124124
</style>

ui/src/components/folder-tree/MoveToDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import { SourceTypeEnum } from '@/enums/common'
3838
import KnowledgeApi from '@/api/knowledge/knowledge'
3939
import ApplicationApi from '@/api/application/application'
4040
import ToolApi from '@/api/tool/tool'
41-
const { folder, application } = useStore()
41+
const { folder } = useStore()
4242
const emit = defineEmits(['refresh'])
4343
4444
const props = defineProps({

ui/src/styles/element-plus.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
// tree
3636
.el-tree {
3737
background: none;
38+
color: var(--el-text-color-primary);
39+
font-weight: 400;
3840
}
3941
.el-tree-node__content {
4042
border-radius: var(--el-border-radius-base);
@@ -46,6 +48,7 @@
4648
.el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {
4749
background: var(--el-color-primary-light-9);
4850
color: var(--el-color-primary);
51+
font-weight: 500;
4952
}
5053
.el-tree-node__expand-icon {
5154
color: var(--app-text-color-secondary);

ui/src/views/application/index.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,11 @@ function openMoveToDialog(data: any) {
365365
}
366366
367367
function refreshApplicationList(row: any) {
368-
const index = applicationList.value.findIndex((v) => v.id === row.id)
369-
applicationList.value.splice(index, 1)
368+
// 不是根目录才会移除
369+
if (folder.currentFolder?.parent_id) {
370+
const index = applicationList.value.findIndex((v) => v.id === row.id)
371+
applicationList.value.splice(index, 1)
372+
}
370373
}
371374
372375
const goApp = (item: any) => {
@@ -650,6 +653,7 @@ function getFolder(bool?: boolean) {
650653
.asyncGetFolder(SourceTypeEnum.APPLICATION, params, apiType.value, loading)
651654
.then((res: any) => {
652655
folderList.value = res.data
656+
653657
if (bool) {
654658
// 初始化刷新
655659
folder.setCurrentFolder(res.data?.[0] || {})

0 commit comments

Comments
 (0)