Commit 55eb6768 authored by hewenhao's avatar hewenhao

feat: fix bug

parent 9fc8e195
...@@ -18,3 +18,4 @@ _testing ...@@ -18,3 +18,4 @@ _testing
/gen-mini-qr.js /gen-mini-qr.js
.prettierrc .prettierrc
.vscode .vscode
/hue.sql
...@@ -22,5 +22,11 @@ ...@@ -22,5 +22,11 @@
"w": 60, "w": 60,
"h": 60, "h": 60,
"ossName": "/passing-stage/3e3wCmnn2uzpFE28ULKVFBo8R1Zt/60x60" "ossName": "/passing-stage/3e3wCmnn2uzpFE28ULKVFBo8R1Zt/60x60"
},
"loading.gif": {
"u": "https://cdn.jkwljy.com/passing-stage/L9YkRy6y6FfxN2c1vhdtTKMiy5r/300x300",
"w": 300,
"h": 300,
"ossName": "/passing-stage/L9YkRy6y6FfxN2c1vhdtTKMiy5r/300x300"
} }
} }
{ {
"name": "learn-math-weapp", "name": "learn-math-weapp",
"version": "1.1.2", "version": "1.1.3",
"private": true, "private": true,
"description": "", "description": "",
"scripts": { "scripts": {
......
...@@ -20,5 +20,10 @@ export default { ...@@ -20,5 +20,10 @@ export default {
"u": "https://cdn.jkwljy.com/passing-stage/3e3wCmnn2uzpFE28ULKVFBo8R1Zt/60x60", "u": "https://cdn.jkwljy.com/passing-stage/3e3wCmnn2uzpFE28ULKVFBo8R1Zt/60x60",
"w": 60, "w": 60,
"h": 60 "h": 60
},
"loading.gif": {
"u": "https://cdn.jkwljy.com/passing-stage/L9YkRy6y6FfxN2c1vhdtTKMiy5r/300x300",
"w": 300,
"h": 300
} }
} as const } as const
...@@ -23,6 +23,7 @@ const Battles = () => { ...@@ -23,6 +23,7 @@ const Battles = () => {
const getSetting = useStoreActions((state) => state.userModel.getSetting) const getSetting = useStoreActions((state) => state.userModel.getSetting)
const setting = useStoreState((state) => state.userModel.setting) const setting = useStoreState((state) => state.userModel.setting)
const stageList = useStoreState(state => state.mainModel.stageList) const stageList = useStoreState(state => state.mainModel.stageList)
const updateMainState = useStoreActions(actions => actions.mainModel.updateState)
const hasPassed = useMemo(() => { const hasPassed = useMemo(() => {
return stageList.findIndex(c => c.status === StageStatus.PASSED && c.type !== StageType.Special) !== -1 return stageList.findIndex(c => c.status === StageStatus.PASSED && c.type !== StageType.Special) !== -1
...@@ -34,6 +35,7 @@ const Battles = () => { ...@@ -34,6 +35,7 @@ const Battles = () => {
const handleClick = () => { const handleClick = () => {
addPkGuideTimes() addPkGuideTimes()
updateMainState({ isCreatePkShow: false })
navigateBack() navigateBack()
} }
......
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