Skip to content

Commit 89b0a19

Browse files
author
白唯
committed
fix(types): 更改部分 type 说明
1 parent badae42 commit 89b0a19

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

@types/index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ export declare interface StoreInstance extends ReturnType<typeof createStore> {
1010
// vuex模块的类型
1111
type ModuleType = { app: AppStateType }
1212

13-
// 所有的SateType
13+
// 所有的StateType
1414
export type StateType = ModuleType & RootStateType & StoreInstance
1515

16-
// request interceptors
16+
/** http请求响应格式 */
1717
export declare interface ApiResponse {
1818
errCode: number
1919
errMsg?: string

src/api/user.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export interface UserApi {
3333
}
3434

3535
/**
36-
* @example Axios.get(`https://api.abckey.com/market/${this.c_switchCashName}/${this.cash.toLowerCase()}&t=${new Date().getTime()}`)
36+
* @example Axios.get(`https://xxx.com}`)
3737
* @todo Get the exchange rate of the current currency
3838
*/
3939
class UserService {

0 commit comments

Comments
 (0)