Introduce the new Vue admin project into version control while tightening gitignore patterns to keep env files, logs, build artifacts, and test outputs out of commits. Made-with: Cursor
26 lines
911 B
JavaScript
Executable File
26 lines
911 B
JavaScript
Executable File
// +----------------------------------------------------------------------
|
||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||
// +----------------------------------------------------------------------
|
||
// | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
|
||
// +----------------------------------------------------------------------
|
||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||
// +----------------------------------------------------------------------
|
||
// | Author: CRMEB Team <admin@crmeb.com>
|
||
// +----------------------------------------------------------------------
|
||
|
||
import Cookies from 'js-cookie';
|
||
|
||
const TokenKey = 'Authori-zation';
|
||
|
||
export function getToken() {
|
||
return Cookies.get(TokenKey);
|
||
}
|
||
|
||
export function setToken(token) {
|
||
return Cookies.set(TokenKey, token);
|
||
}
|
||
|
||
export function removeToken() {
|
||
return Cookies.remove(TokenKey);
|
||
}
|