feat:hash模式
This commit is contained in:
@@ -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"'
|
||||
|
||||
Reference in New Issue
Block a user