摘要:
1.安装 $ npm install react-cookies --save 2.使用 /** * react-cookies封装 */ import cookie from 'react-cookies'; // 获取当前用户cookie export const loginUser = () 阅读全文
posted @ 2021-09-15 14:14
飞渝
阅读(375)
评论(0)
推荐(1)
摘要:
/** * Web Storage封装 * 1.localStorage * 2.sessionStorage * 详情:https://www.cnblogs.com/fei-yu9999/p/14667831.html */ /** * 1.localStorage */ export defa 阅读全文
posted @ 2021-09-15 12:09
飞渝
阅读(93)
评论(0)
推荐(0)
摘要:
/** * 对axios的封装 */ //引入axios import axios from 'axios'; //引入其它配置(根据具体需求按需引入) import { history } from 'umi'; //1.创建axios实例,默认配置也可以在具体请求内复写修改。 const ins 阅读全文
posted @ 2021-09-15 11:34
飞渝
阅读(959)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2021-09-15 09:10
飞渝
阅读(103)
评论(0)
推荐(0)