|
@@ -1,6 +1,6 @@
|
|
|
// import { getProjectTypeList } from '@/services/api/project'
|
|
|
// import consts from '@/utils/consts'
|
|
|
-import { queryAccountTypeList } from '@/services/api/institution'
|
|
|
+import { getAccountTypeList } from '@/services/api/institution'
|
|
|
import consts from '@/utils/consts'
|
|
|
import type { Effect, Reducer } from 'umi'
|
|
|
|
|
@@ -41,8 +41,8 @@ const InstitutionsModel: InstitutionsModelType = {
|
|
|
// })
|
|
|
// }
|
|
|
},
|
|
|
- *getAccountTypeList(_, { call, put }) {
|
|
|
- const response = yield call(queryAccountTypeList)
|
|
|
+ *queryAccountTypeList(_, { call, put }) {
|
|
|
+ const response = yield call(getAccountTypeList)
|
|
|
if (response?.code === consts.RET_CODE.SUCCESS) {
|
|
|
yield put({
|
|
|
type: 'save',
|