补充,在h5模式下 浏览器 地址栏 输入地址切换路由 拦截const needLoginList = ["path1","path2"]let token= uni.getStorageSync("token")let locationUrl = window.location.split("/#")[1]if(needLoginList.includes(locationUrl)&&!token){uni.navigateTo({url:"loginPath"})}...