From 243f89f619225db1366acb2a2b2eff4910a933e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Fri, 9 Jan 2026 06:53:55 +0800 Subject: [PATCH] fix: lint --- web/src/views/file/ListTable.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/web/src/views/file/ListTable.vue b/web/src/views/file/ListTable.vue index 0a2b45cf..cdc04c6f 100644 --- a/web/src/views/file/ListTable.vue +++ b/web/src/views/file/ListTable.vue @@ -8,7 +8,8 @@ import { NPopconfirm, NPopselect, NSpin, - NTag + NTag, + useThemeVars } from 'naive-ui' import { useGettext } from 'vue3-gettext' @@ -31,6 +32,7 @@ import PreviewModal from '@/views/file/PreviewModal.vue' import type { Marked } from '@/views/file/types' const { $gettext } = useGettext() +const themeVars = useThemeVars() const sort = ref('') const path = defineModel('path', { type: String, required: true }) // 当前路径 const keyword = defineModel('keyword', { type: String, default: '' }) // 搜索关键词 @@ -199,10 +201,9 @@ const columns: DataTableColumns = [ return h(NSpin, { size: 16, style: { paddingTop: '4px' } }) } return h( - 'a', + 'span', { - href: 'javascript:void(0)', - style: { color: '#18a058', cursor: 'pointer', fontSize: '12px' }, + style: { cursor: 'pointer', fontSize: '14px', color: themeVars.value.primaryColor }, onClick: (e: MouseEvent) => { e.preventDefault() e.stopPropagation()