be966eff
jack
1.添加文件
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
import Cookies from 'js-cookie'
const TokenKey = 'sunvote_education_cloud_token'
const LogoLayout = 'sunvote_education_cloud_logolayout'
export function getToken() {
return Cookies.get(TokenKey)
}
export function setToken(token) {
return Cookies.set(TokenKey, token)
}
export function removeToken() {
return Cookies.remove(TokenKey)
}
export function getLogoLayout() {
return Cookies.get(LogoLayout)
}
export function setLogoLayout(token) {
return Cookies.set(LogoLayout, token)
}
|