摘要: 1.利用Cookie,来设置接口携带的‘token’ 执行命令npm install js-cookie,在js工具类中引入, /** @format */ import Cookie from 'js-cookie'; function getToken() { return Cookie.get 阅读全文
posted @ 2019-10-30 11:29 ____chen 阅读(7854) 评论(0) 推荐(0) 编辑
摘要: 一、利用lib-flexible、postcss-plugin-px2rem插件 进行移动端rem适配。 1、第一 引入lib-flexible . 安装lib-flexible: npm i lib-flexible --save-dev 在项目的入口main.js文件中引入lib-flexibl 阅读全文
posted @ 2019-10-30 10:25 ____chen 阅读(14842) 评论(1) 推荐(2) 编辑