This commit is contained in:
iizmg
2020-04-30 15:17:10 +08:00
parent c83d61267c
commit f6165cafb0
-9
View File
@@ -9,15 +9,6 @@ const glob = {
//初始化Axios
this.intiAxios();
},
//读取cookies
getCookie(name) {
var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
if (arr === document.cookie.match(reg)) {
return unescape(arr[2]);
} else {
return null;
}
},
//返回token
getToken() {
//token名称