From d16fbc3b13bafa2cd0a90bc11ced1ead26a26338 Mon Sep 17 00:00:00 2001 From: zhaojisen <1301338853@qq.com> Date: Mon, 27 Oct 2025 14:37:06 +0800 Subject: [PATCH] Fixed: Fix ESLint errors --- .eslintrc.js | 3 ++- src/components/Table/DrawerListTable/index.vue | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 54c5d74d9..da40a14dc 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -294,7 +294,8 @@ module.exports = { ], skipIfMatch: [ 'http://[^s]*', - '^[-\\w]+/[-\\w\\.]+$' // For import paths + '^[-\\w]+/[-\\w\\.]+$', + String.raw`^\/api\/[a-z0-9\/._-]+$`, ], minLength: 3 } diff --git a/src/components/Table/DrawerListTable/index.vue b/src/components/Table/DrawerListTable/index.vue index 109be6e61..eb4c33043 100644 --- a/src/components/Table/DrawerListTable/index.vue +++ b/src/components/Table/DrawerListTable/index.vue @@ -107,8 +107,8 @@ export default { const formatterArgs = value?.formatterArgs // console.log('>>> name: ', key) // console.log('>>> formatter: ', formatter) - const detailFormaters = ['AmountFormatter', 'DetailFormatter'] - if (formatter && detailFormaters.includes(formatter.name) && formatterArgs.drawer !== false) { + const detailFormatters = ['AmountFormatter', 'DetailFormatter'] + if (formatter && detailFormatters.includes(formatter.name) && formatterArgs.drawer !== false) { formatterArgs.onClick = this.onDetail } }