From abfd6a056f8934125c3461596c1f7e428310bb4d Mon Sep 17 00:00:00 2001 From: SpiderMan <445001382@qq.com> Date: Sat, 28 Sep 2024 17:38:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8Dlodash-es=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 项目里使用的是lodash-es,开发类型安装的为@types/lodash --- web/package.json | 2 +- web/pnpm-lock.yaml | 6 +++--- web/src/hooks/useDomWidth.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/web/package.json b/web/package.json index 84a8ad9..257d1b9 100644 --- a/web/package.json +++ b/web/package.json @@ -68,7 +68,7 @@ "@commitlint/config-conventional": "^19.4.1", "@eslint/eslintrc": "^3.1.0", "@types/fs-extra": "^11.0.4", - "@types/lodash": "^4.17.7", + "@types/lodash-es": "^4.17.12", "@types/node": "^22.5.2", "@typescript-eslint/eslint-plugin": "^8.4.0", "@typescript-eslint/parser": "^8.4.0", diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml index 21bf9b1..f006f24 100644 --- a/web/pnpm-lock.yaml +++ b/web/pnpm-lock.yaml @@ -120,9 +120,9 @@ importers: '@types/fs-extra': specifier: ^11.0.4 version: 11.0.4 - '@types/lodash': - specifier: ^4.17.7 - version: 4.17.7 + '@types/lodash-es': + specifier: ^4.17.12 + version: 4.17.12 '@types/node': specifier: ^22.5.2 version: 22.5.2 diff --git a/web/src/hooks/useDomWidth.ts b/web/src/hooks/useDomWidth.ts index eadd7de..1a0bc5a 100644 --- a/web/src/hooks/useDomWidth.ts +++ b/web/src/hooks/useDomWidth.ts @@ -1,5 +1,5 @@ import { ref, onMounted, onUnmounted } from 'vue'; -import { debounce } from 'lodash'; +import { debounce } from 'lodash-es'; /** * description: 获取页面宽度