From c27b87f17acb05b9c6100230215845edd697216b Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 19 Nov 2021 10:39:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/index.js | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/apps/index.js b/src/apps/index.js index 993150d7..d674aa43 100644 --- a/src/apps/index.js +++ b/src/apps/index.js @@ -1,4 +1,4 @@ -const install = function (Vue, params) { +const install = function (Vue) { if (install.installed) return // 遍历注册全局组件 let apps = [] @@ -6,18 +6,10 @@ const install = function (Vue, params) { if (contexts) { contexts.keys().map(e => { if (contexts(e).default) { - if (params?.apps) { - if (params?.apps.includes(contexts(e).default.name)) { - apps.push(contexts(e).default) - Vue.component(contexts(e).default.name, contexts(e).default) - } - } else { - apps.push(contexts(e).default) - Vue.component(contexts(e).default.name, contexts(e).default) - } + apps.push(contexts(e).default) + Vue.component(contexts(e).default.name, contexts(e).default) } }) - !!params?.showList && console.log(apps.map(e => e.name)) } return Promise.resolve(apps) }