mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-08-06 10:57:26 +08:00
feat: 新增消息模板聚合接口及通知类站内信邮箱状态更新功能
- 在 setting.js 中添加了消息模板聚合分页接口和更新通知类站内信邮箱渠道开关的功能。 - 在 axios.js 中重构了 token 刷新和登录重定向逻辑,避免循环依赖。 - 新增 router-holder.js 文件以延迟持有 router 实例,优化依赖管理。 - 更新 util.js 中的动态路由管理逻辑,确保在无 router 实例时不执行相关操作。
This commit is contained in:
@@ -2,6 +2,7 @@ import { createRouter, createWebHistory } from "vue-router";
|
||||
import NProgress from "nprogress";
|
||||
import "nprogress/nprogress.css";
|
||||
import Util from "../libs/util";
|
||||
import { setRouter } from "../libs/router-holder";
|
||||
import Cookies from "js-cookie";
|
||||
import store from "@/store";
|
||||
import { routers } from "./router";
|
||||
@@ -13,6 +14,8 @@ export const router = createRouter({
|
||||
routes: routers,
|
||||
});
|
||||
|
||||
setRouter(router);
|
||||
|
||||
router.beforeEach((to, from, next) => {
|
||||
NProgress.start();
|
||||
Util.title(to.meta.title);
|
||||
|
||||
Reference in New Issue
Block a user