feat:hash模式

This commit is contained in:
eric
2023-12-05 17:33:10 +08:00
parent 9cde1db298
commit c6424983ab
4 changed files with 18 additions and 8 deletions

View File

@@ -62,12 +62,13 @@ const config = {
// // "页面路径": "自定义路由"
// "/pages/index/index": "/index",
// // '/pages/detail/index': ['/detail'], // 可以通过数组为页面配置多个自定义路由
// "pages/my/index": ["/my"],
// "pages/meetup/index": ["/meetup"],
// "pages/meetup/Detail/index": ["/detail"],
// "pages/my/index": "/my",
// "pages/meetup/index": "/meetup",
// "pages/meetup/Detail/index": "/detail",
// },
router: {
mode: "browser", // 或者是 'browser'
// basename: '/myapp',
mode: "hash", // 或者是 'browser'
},
// defineConstants: {
// HOST: '"/api"'