UNPKG

@jecloud/utils

Version:

JECloud 工具库

1 lines 414 B
import{ajax as t,transformAjaxData as r}from"../../utils/http";import{API_RBAC_ACCOUNT as o,API_RBAC_LOGOUT as n,API_SYSTEM_FRONTEND_VARIABLES as e}from"./urls";export{initDDData}from"../dictionary";export function initCurrentAccount(){return t({url:o,method:"GET"}).then(r)}export function initSystemConfig(){return t({url:e},{headers:{pd:"meta"}}).then(r)}export function logout(){return t({url:n,method:"GET"})}