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 @@