Skip to content

Commit 0c765ba

Browse files
committed
fix jump to problem none intitger bug
Signed-off-by: zhangtianli2006 <49156174+zhangtianli2006@users.noreply.github.com>
1 parent dec8858 commit 0c765ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/lib/jumpToProblem.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export default {
2626
},
2727
methods: {
2828
jump() {
29+
this.jumpToProblem = String(parseInt(this.jumpToProblem.trim()));
2930
this.$router.push('/problem/' + this.jumpToProblem);
3031
}
3132
}

0 commit comments

Comments
 (0)