提交
This commit is contained in:
@@ -26,7 +26,7 @@ const detailIndex = () => import('views/detail/detailIndex')
|
||||
const routes = [
|
||||
{
|
||||
// 首页
|
||||
path: '/',
|
||||
path: '*',
|
||||
name: 'Index',
|
||||
redirect: "/recommend",
|
||||
component: Index,
|
||||
@@ -102,12 +102,10 @@ const routes = [
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
]
|
||||
|
||||
const router = new VueRouter({
|
||||
mode: 'history',
|
||||
// mode: 'hash',
|
||||
base: process.env.BASE_URL,
|
||||
routes
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user