This commit is contained in:
xiaoronghao
2023-04-17 19:24:06 +08:00
parent 808baf798b
commit 4e228cadd1
8 changed files with 36 additions and 30 deletions

View File

@@ -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
})