diff --git a/scripts/create-base-files.js b/scripts/create-base-files.js index 7794f88..0cf31cc 100644 --- a/scripts/create-base-files.js +++ b/scripts/create-base-files.js @@ -159,10 +159,6 @@ const pages = { text: '首页', pagePath: 'pages/index/index', }, - { - text: '关于', - pagePath: 'pages/about/about', - }, { text: '我的', pagePath: 'pages/me/me', @@ -178,35 +174,6 @@ const pages = { navigationBarTitleText: '首页', }, }, - { - path: 'pages/about/about', - type: 'page', - style: { - navigationBarTitleText: '关于', - }, - excludeLoginPath: false, - }, - { - path: 'pages/about/alova', - type: 'page', - style: { - navigationBarTitleText: 'Alova 演示', - }, - }, - { - path: 'pages/login/login', - type: 'page', - style: { - navigationBarTitleText: '登录', - }, - }, - { - path: 'pages/login/register', - type: 'page', - style: { - navigationBarTitleText: '注册', - }, - }, { path: 'pages/me/me', type: 'page', diff --git a/src/pages-sub/about/about.vue b/src/pages-sub/about/about.vue index 63e00f3..005200d 100644 --- a/src/pages-sub/about/about.vue +++ b/src/pages-sub/about/about.vue @@ -49,7 +49,7 @@ function gotoScroll() { function gotoAlova() { uni.navigateTo({ - url: '/pages/about/alova', + url: '/pages-sub/about/alova', }) } function gotoSubPage() { diff --git a/src/pages-sub/about/components/request.vue b/src/pages-sub/about/components/request.vue index 18f8582..73db16b 100644 --- a/src/pages-sub/about/components/request.vue +++ b/src/pages-sub/about/components/request.vue @@ -37,7 +37,7 @@ function reset() { pages 里面的 vue 文件会扫描成页面,将自动添加到 pages.json 里面。 - 但是 pages/components 里面的 vue 不会。 + 但是 components 里面的 vue 不会。 diff --git a/src/router/config.ts b/src/router/config.ts index 341fa38..2d0e52d 100644 --- a/src/router/config.ts +++ b/src/router/config.ts @@ -20,7 +20,8 @@ export const excludeLoginPathList = getAllPages('excludeLoginPath').map(page => // 排除在外的列表,白名单策略指白名单列表,黑名单策略指黑名单列表 // TODO: 2/3 在 definePage 配置 excludeLoginPath,或者在下面配置 EXCLUDE_LOGIN_PATH_LIST export const EXCLUDE_LOGIN_PATH_LIST = [ - '/pages/xxx/index', + '/pages/xxx/index', // 示例值 + '/pages-sub/xxx/index', // 示例值 ...excludeLoginPathList, // 都是以 / 开头的 path ]