修复:用户资料及认证提交页面,需求定制页面
This commit is contained in:
@@ -9,7 +9,6 @@ export default defineNuxtRouteMiddleware((to, from) => {
|
||||
if(import.meta.client){
|
||||
let token = useToken()
|
||||
if(!token.value){
|
||||
console.log('ekekekekeke')
|
||||
return navigateTo({
|
||||
path: '/passport/login',
|
||||
query: {
|
||||
@@ -27,7 +26,7 @@ export default defineNuxtRouteMiddleware((to, from) => {
|
||||
if (isMobile) {
|
||||
mobile.value = true;
|
||||
if (to.path.indexOf('/m') < 0) {
|
||||
return window.location.href = `/m`
|
||||
// return window.location.href = `/m`
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user