批量优化

This commit is contained in:
hero920103 committed 2026-10-03 23:46:55 +08:00
1 parent e3db229f41
commit aa92ca40a2
79 files changed
+7495 -1104

No files matched your search

+13 -2
View File
@@ -148,6 +148,13 @@ const staticRoutes = [
component: () => import("@/views/auth/mpLogin.vue"),
meta: { requiresAuth: false }
},
// 移动端免登录页(uniapp APP / 小程序带一次性票据 → 换发 Web 端令牌,避免二次登录)
{
path: "/app-login",
name: "AppLogin",
component: () => import("@/views/auth/appLogin.vue"),
meta: { requiresAuth: false }
},
{
path: "/home",
name: "Home",
@@ -317,8 +324,12 @@ async function gotoAuthorize() {
router.beforeEach(async (to, from, next) => {
const token = localStorage.getItem("token");
// 认证中心回跳页 / 微信登录兑换页:始终放行,由页面自身完成令牌兑换
if (to.path === "/auth/callback" || to.path === "/mp-login") {
// 认证中心回跳页 / 微信登录兑换页 / 移动端免登录页:始终放行,由页面自身完成令牌兑换
if (
to.path === "/auth/callback" ||
to.path === "/mp-login" ||
to.path === "/app-login"
) {
next();
return;
}