mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-08-06 10:57:26 +08:00
升级Vue3,iView替换ElementPlus
- 删除babel配置、更新依赖与入口初始化 - 全量替换UI组件、样式适配,新增迁移文档与标签/过滤器自动化替换脚本
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import axios from "axios";
|
||||
import { getStore, setStore } from "./storage";
|
||||
import { router } from "../router/index";
|
||||
import { Message } from "view-design";
|
||||
import { Message } from "@/utils/message";
|
||||
import Cookies from "js-cookie";
|
||||
import { handleRefreshToken } from "@/api/index";
|
||||
import {v4 as uuidv4} from 'uuid';
|
||||
@@ -25,8 +25,8 @@ const service = axios.create({
|
||||
});
|
||||
axios.defaults.timeout = 100000
|
||||
const recordCurrentPath = () => {
|
||||
return router.history.current.fullPath
|
||||
}
|
||||
return router.currentRoute.value.fullPath;
|
||||
};
|
||||
// 跳转登录页
|
||||
const redirectLogin = () => {
|
||||
router.push({path:'/login',query:{redirect: recordCurrentPath()}});
|
||||
|
||||
Reference in New Issue
Block a user