From 0dbbbc40d364869e0e607a9661436e81dec6c0e7 Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 14 Dec 2021 18:54:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=87=AA=E5=8A=A8=E8=B7=AF?= =?UTF-8?q?=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/router/autoRoutes.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/examples/router/autoRoutes.js b/examples/router/autoRoutes.js index 2ddecbcc..2d75b50c 100644 --- a/examples/router/autoRoutes.js +++ b/examples/router/autoRoutes.js @@ -41,19 +41,6 @@ export default { store.commit("addApp", addApp) } }) - let oms = require.context('../../oms', true, /\.(\/.+)\/App[^\/]+\.vue$/) - oms.keys().map(path => { - if (oms(path).default) { - let {name, label} = oms(path).default, - addApp = { - name, label: label || name, - path: path.replace(/\.(\/.+\/App.+)\.vue$/, '$1'), - entry: 'appEntry' - } - //命名规范入口文件必须以App开头 - store.commit("addApp", addApp) - } - }) let project = require.context('../../project', true, /\.(\/.+)\/App[^\/]+\.vue$/) project.keys().map(path => { if (project(path).default) {