global.ts 379 Bytes
Newer Older
duanledexianxianxian's avatar
duanledexianxianxian committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
import { get, post, put } from '@/utils/request';
/**
 * 登录
 * @param data
 */
export const login = data => post('/api/v1/login', data);
/**
 * 登出
 */
export const logout = () => put('/api/v1/logout');
/**
 * 获取静态数据数据
 * @param data
 */
export const getStaticData = data =>
  get('/api/v1/params/businesses/paramList', { ...data, paramLocale: 'zh_CN' });