| | |
| | | import request from '@/router/axios'; |
| | | import Message from "element-ui/packages/message/src/main"; |
| | | |
| | | export const getList = (current, size, params) => { |
| | | return request({ |
| | |
| | | export const ss = () => { |
| | | return request({ |
| | | url: '/api/blade-system/dept/selectInfo', |
| | | method: 'post', |
| | | method: 'get', |
| | | }) |
| | | } |
| | | // 封装api get请求 |
| | | export const fetch = (path, params) => { |
| | | let axios; |
| | | return axios.get(path, {params: params}).then(res => { |
| | | if (res.data.code === 403) { |
| | | let router; |
| | | router.push({ |
| | | path: '/' |
| | | }); |
| | |
| | | return Promise.reject(err); |
| | | }) |
| | | } |
| | | |