From c3f3c44e638a2c41e6b69786c28b7c52de5fd6d1 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 2 May 2024 09:39:00 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=AE=8C=E5=96=84=E3=80=91=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=20HBuilder=20=E6=9C=80=E6=96=B0=E7=89=88=E6=9C=AC=20v?= =?UTF-8?q?ite5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sheep/api/migration/index.js | 2 +- sheep/store/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sheep/api/migration/index.js b/sheep/api/migration/index.js index 7c429fb9..31a85ef2 100644 --- a/sheep/api/migration/index.js +++ b/sheep/api/migration/index.js @@ -1,4 +1,4 @@ -const files = import.meta.globEager('./*.js'); +const files = import.meta.glob('./*.js', { eager: true }); let api = {}; Object.keys(files).forEach((key) => { api = { diff --git a/sheep/store/index.js b/sheep/store/index.js index db59bd48..3d06698d 100644 --- a/sheep/store/index.js +++ b/sheep/store/index.js @@ -2,7 +2,7 @@ import { createPinia } from 'pinia'; import piniaPersist from 'pinia-plugin-persist-uni'; // 自动注入所有pinia模块 -const files = import.meta.globEager('./*.js'); +const files = import.meta.glob('./*.js', { eager: true }); const modules = {}; Object.keys(files).forEach((key) => { modules[key.replace(/(.*\/)*([^.]+).*/gi, '$2')] = files[key].default;