|
@@ -95,17 +95,12 @@ async function initTemplateEntry(context) {
|
|
|
}
|
|
|
|
|
|
// 公共入口进入
|
|
|
-function initPublicEntry() {
|
|
|
- console.log('公共入口进入')
|
|
|
- return new Promise((resolve) => {
|
|
|
- resolve()
|
|
|
- })
|
|
|
-}
|
|
|
+// async function initPublicEntry(context) {}
|
|
|
|
|
|
export default function (context) {
|
|
|
const name = context.route.name
|
|
|
- // console.log(name)
|
|
|
- if (isPublicEntry(name)) return initPublicEntry(context)
|
|
|
+ console.log(name)
|
|
|
+ if (isPublicEntry(name)) return // initPublicEntry(context)
|
|
|
if (isTemplateEntry(name)) return initTemplateEntry(context)
|
|
|
context.error({ statusCode: 404, message: '页面不存在' })
|
|
|
}
|