From bd727f76b45fbb7140df7e1d0f5ee8ee92fad70c Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 13 Dec 2021 10:16:08 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=A1=86=E6=9E=B6=E4=BD=93?= =?UTF-8?q?=E7=B3=BB=E9=87=8D=E6=96=B0=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/serve.js | 10 +-- src/App.vue | 1 + src/apps/AppInterview/AppInterview.vue | 104 ++++++++++--------------- src/apps/index.js | 25 ------ src/common/util.js | 9 +++ src/components/AiBack.vue | 4 +- src/main.js | 2 - src/pages/loading.vue | 3 +- 8 files changed, 61 insertions(+), 97 deletions(-) delete mode 100644 src/apps/index.js diff --git a/bin/serve.js b/bin/serve.js index 91cc9de7..effe9275 100644 --- a/bin/serve.js +++ b/bin/serve.js @@ -56,20 +56,20 @@ const start = () => { chalkTag.info('开始生成pages.json...') let json = { easycom: { - "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue" + "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue", + "^(Ai|V)(.*)": "@/components/$1$2.vue" }, pages: [ {path: 'pages/loading'}, - {path: 'pages/login'}, - {path: 'pages/mainEntry', style: {navigationBarTitleText: "村微产品应用库"}} + {path: 'pages/login'} ], globalStyle: { pageOrientation: "auto", navigationStyle: "custom" } } - findApp('src/utils', file => { - if (/.*\\.+\\App[^\\]+\.vue/g.test(file)) { + findApp('src/apps', file => { + if (/.*\\.+\\App[^\\]+\\[^\\]+\.vue/g.test(file)) { let app = { name: file.replace(/.*\\([^\\]+).vue/g, '$1'), path: file.replace(/^src\\(.*).vue/g, '$1').replace(/\\/g, '/') diff --git a/src/App.vue b/src/App.vue index 0f76ba2e..725dffca 100644 --- a/src/App.vue +++ b/src/App.vue @@ -48,6 +48,7 @@ body { uni-page-body { // min-height: 100%; + min-height: 100vh; background: #f5f5f5; position: relative; } diff --git a/src/apps/AppInterview/AppInterview.vue b/src/apps/AppInterview/AppInterview.vue index c8cabc3a..bc8e7eb8 100644 --- a/src/apps/AppInterview/AppInterview.vue +++ b/src/apps/AppInterview/AppInterview.vue @@ -1,52 +1,42 @@