//全局导入importElementUI from 'element-ui';import 'element-ui/lib/theme-chalk/index.css';
npm install element-plus --save
js-cookie
npm install js-cookie --save
importCookies from 'js-cookie'
importCookies from "js-cookie";// const TokenKey = "Token";
export function getToken(key){returnCookies.get(key);}//expires: 7 过期时间为7天
export function setToken(key,token){returnCookies.set(key, token,{ expires:7});}
export function removeToken(key){returnCookies.remove(key);}
jsencrypt
npm install jsencrypt --save
importJSEncrypt from 'jsencrypt/bin/jsencrypt.min'
node-rsa
npm install node-rsa --save
jsonwebtoken
npm install jsonwebtoken --save
nprogress
npm install --save nprogress
importNProgress from "nprogress";import"nprogress/nprogress.css";NProgress.start();NProgress.done();