-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(api): 重构网络请求模块以及完善 vuex 模块示例
- Loading branch information
白唯
committed
Nov 17, 2020
1 parent
003bccf
commit b2acb41
Showing
12 changed files
with
661 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import Axios from './axios' | ||
import { HttpResponse } from '../../@types/index' | ||
|
||
/** | ||
* @description 公共模块的的网络请求,所有通用 api 放在此处 | ||
*/ | ||
|
||
class CommonService { | ||
// 添加团队 | ||
static getRoleInfoList(): Promise<HttpResponse> { | ||
return Axios.get('/bus/common/getRoleInfo', { | ||
responseType: 'json' | ||
}) | ||
} | ||
} | ||
|
||
export default CommonService |
Oops, something went wrong.