user.js 393 Bytes
import req from '@/api/http.js'

const user = {
    login: (data) => req('post', '/users/login', data),
    // 获取应用 appid
    getMenuApp: (param) => req('get', `${window._vionConfig.menuUrl}/api/v1/auth/apps`, param),
    // 获取菜单节点
    getMenuNode: (appId, param) => req('get', `${window._vionConfig.menuUrl}/api/v1/auth/apps/${appId}/menus`, param)
}

export default user;