流浪のwolf

卷帝

导航

2023年2月13日

封装 API 函数的2个方法

摘要: 1. 以前的方法 export function loginApi(data) { return request({ url: "/sys/login", // ==> /api/sys/login // ==> http://ihrm-java.itheima.net/api/sys/login 阅读全文

posted @ 2023-02-13 21:36 流浪のwolf 阅读(19) 评论(0) 推荐(0) 编辑

如何重置路由实例

摘要: 首先先定义一个创建路由实例的函数: // 定义一个创建路由的函数 const createRouter = () => new Router({ mode: "hash", // mode: "history", // require service support // base: "/hr", 阅读全文

posted @ 2023-02-13 21:32 流浪のwolf 阅读(70) 评论(0) 推荐(0) 编辑