页面框架体系重新调整

This commit is contained in:
aixianling
2021-12-13 10:16:08 +08:00
parent 6174c46869
commit bd727f76b4
8 changed files with 61 additions and 97 deletions

View File

@@ -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, '/')