Commit 165d1ca6 authored by hewenhao's avatar hewenhao

feat: 新接口

parent 14b6325e
......@@ -2,7 +2,7 @@ import { action, computed, thunk } from 'easy-peasy'
import {
getQuestionList, StageLevel,
getStageDetail, completeStage, StageType,
resumeGame, getPkDetail
resumeGame, fetchUserDetails
} from '@/api'
import {
showLoading, hideLoading, showModal, redirectTo,
......@@ -61,7 +61,7 @@ const gameModel: GameModel = {
getPkDetail: thunk(async (actions, payload) => {
try {
const { data } = await getPkDetail(payload)
const { data } = await fetchUserDetails(payload)
actions.updateState({ pkDetail: data })
} catch (err) {}
}),
......
......@@ -2,7 +2,7 @@ import { Action, Computed, Thunk } from 'easy-peasy'
import { AppStoreModel } from '@/store/store-model'
import {
type StageDetail,
type CompleteStageOut, PkDetail
type CompleteStageOut, PkDetails
} from '@/api'
import {
QuestionType,
......@@ -40,7 +40,7 @@ export interface GameModelState {
rightIcon: string | null;
pkDetail: PkDetail | null;
pkDetail: PkDetails | null;
}
export interface GameModel extends GameModelState {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment