批量优化功能

This commit is contained in:
hero920103 committed 2026-09-30 00:57:36 +08:00
1 parent ca4220f92c
commit e3db229f41
43 files changed
+2959 -207

No files matched your search

+9 -2
View File
@@ -141,6 +141,13 @@ const staticRoutes = [
component: () => import("@/views/auth/callback.vue"),
meta: { requiresAuth: false }
},
// 微信公众号一次性链接登录页(公众号发「登录」/扫码确认 → 链接跳到这里兑换令牌)
{
path: "/mp-login",
name: "MpLogin",
component: () => import("@/views/auth/mpLogin.vue"),
meta: { requiresAuth: false }
},
{
path: "/home",
name: "Home",
@@ -310,8 +317,8 @@ async function gotoAuthorize() {
router.beforeEach(async (to, from, next) => {
const token = localStorage.getItem("token");
// 认证中心回跳页:始终放行,由页面自身完成 code 换令牌
if (to.path === "/auth/callback") {
// 认证中心回跳页 / 微信登录兑换页:始终放行,由页面自身完成令牌兑换
if (to.path === "/auth/callback" || to.path === "/mp-login") {
next();
return;
}