From be82375202278ebb7640e30fffb56e63f16747a8 Mon Sep 17 00:00:00 2001 From: wangqiao Date: Mon, 1 Sep 2025 11:33:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E4=BB=8E/m=E6=94=B9=E4=B8=BA/mobile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- middleware/auth.global.ts | 2 +- pages/{m => mobile}/index.vue | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename pages/{m => mobile}/index.vue (100%) diff --git a/middleware/auth.global.ts b/middleware/auth.global.ts index 3b7ac0c..d3bea07 100644 --- a/middleware/auth.global.ts +++ b/middleware/auth.global.ts @@ -6,7 +6,7 @@ export default defineNuxtRouteMiddleware((to, from) => { // 是否是移动端设备 const isMobile = /(Android|webOS|iPhone|iPod|tablet|BlackBerry|Mobile)/i.test(navigator.userAgent) // 是否是手机端路由开头 - const isRouterMobile = to.path.startsWith('/m') + const isRouterMobile = to.path.startsWith('/mobile') console.log(isMobile, isRouterMobile); diff --git a/pages/m/index.vue b/pages/mobile/index.vue similarity index 100% rename from pages/m/index.vue rename to pages/mobile/index.vue