From 89baf6b8e423382aa1048287484e7fa02d3e6985 Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 17 Jun 2024 18:23:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/index.js b/src/router/index.js index 04343a4..dd4f11e 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -2,7 +2,7 @@ import Vue from 'vue' import VueRouter from 'vue-router' Vue.use(VueRouter) -const ctx = require.context('../views', true, /\.(\/.+)\/App[A-Z][^\/]+\.vue$/, 'lazy') +const ctx = import.meta.glob('../views/App*.vue') const router = new VueRouter({ mode: 'history', routes: [{ path: '/', name: 'home',