Commit 027ca17f authored by hewenhao's avatar hewenhao

feat: fix bug

parent 434ea1a9
{ {
"name": "learn-math-weapp", "name": "learn-math-weapp",
"version": "1.0.17", "version": "1.1.0",
"private": true, "private": true,
"description": "", "description": "",
"scripts": { "scripts": {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"miniprogramRoot": "dist/", "miniprogramRoot": "dist/",
"projectname": "GeekLearnMathWeapp", "projectname": "GeekLearnMathWeapp",
"description": "", "description": "",
"appid": "wx693fe3460124d84b", "appid": "wx8f25def587982a19",
"setting": { "setting": {
"urlCheck": false, "urlCheck": false,
"es6": false, "es6": false,
......
...@@ -10,7 +10,7 @@ import { View, Text, Image } from '@tarojs/components' ...@@ -10,7 +10,7 @@ import { View, Text, Image } from '@tarojs/components'
import Button from '@/components/Button' import Button from '@/components/Button'
import { useStoreState, useStoreActions } from '@/store/hooks' import { useStoreState, useStoreActions } from '@/store/hooks'
import assets from '@/assets/oss/assets-pk' import assets from '@/assets/oss/assets-pk'
import { StageStatus } from '@/api' import { StageStatus, StageType } from '@/api'
import TopHeader from './components/top-header' import TopHeader from './components/top-header'
import PlayerDetails from './components/player-details' import PlayerDetails from './components/player-details'
...@@ -25,7 +25,7 @@ const Battles = () => { ...@@ -25,7 +25,7 @@ const Battles = () => {
const stageList = useStoreState(state => state.mainModel.stageList) const stageList = useStoreState(state => state.mainModel.stageList)
const hasPassed = useMemo(() => { const hasPassed = useMemo(() => {
return stageList.findIndex(c => c.status === StageStatus.CURRENT) > 0 return stageList.findIndex(c => c.status === StageStatus.PASSED && c.type !== StageType.Special) !== -1
}, [stageList]) }, [stageList])
const fetchUserSummary = useStoreActions( const fetchUserSummary = useStoreActions(
......
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