mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-07 01:46:44 +08:00
25 lines
496 B
JavaScript
25 lines
496 B
JavaScript
/**控制台相关的控制数据*/
|
|
import ajax from '@/utils/xajax.js'
|
|
|
|
/**
|
|
* 初始化门户信息
|
|
*/
|
|
const initData = function() {
|
|
return ajax.get('/xboe/portal/init');
|
|
}
|
|
|
|
//获取router菜单
|
|
const getRouters = function() {
|
|
return ajax.post('/xboe/portal/console/routers', data);
|
|
}
|
|
|
|
const getAppRouters = function(orgId) {
|
|
const data = { orgId }
|
|
return ajax.post('/xboe/portal/console/approuters', data);
|
|
}
|
|
|
|
export default {
|
|
initData,
|
|
getRouters,
|
|
getAppRouters
|
|
} |