refactor: 更新移动端路由路径从/m到/mobile
This commit is contained in:
@ -12,7 +12,7 @@ export default defineNuxtRouteMiddleware((to, from) => {
|
||||
|
||||
// 移动端并且 不是/m开头路由
|
||||
if (isMobile && !isRouterMobile) {
|
||||
return navigateTo(`/m`)
|
||||
return navigateTo(`/mobile`)
|
||||
}
|
||||
// 不是移动端 是/m开头路由
|
||||
if (!isMobile && isRouterMobile) {
|
||||
|
||||
Reference in New Issue
Block a user