提交 90c8ca43 authored 作者: lihuihui's avatar lihuihui

修改输入数字

上级 719999d5
...@@ -6605,8 +6605,7 @@ ...@@ -6605,8 +6605,7 @@
"global": "^4.4.0", "global": "^4.4.0",
"m3u8-parser": "4.7.0", "m3u8-parser": "4.7.0",
"mpd-parser": "0.19.2", "mpd-parser": "0.19.2",
"mux.js": "5.14.1", "mux.js": "5.14.1"
"video.js": "^6 || ^7"
} }
}, },
"@videojs/vhs-utils": { "@videojs/vhs-utils": {
......
...@@ -119,7 +119,8 @@ export default { ...@@ -119,7 +119,8 @@ export default {
}, },
methods: { methods: {
handleScoreInput(item) { handleScoreInput(item) {
item.user_score = parseInt(item.user_score.replace(/[^\d]+/g, '')) // item.user_score = parseFloat(item.user_score.replace(/[^\d]+/g, ''))
item.user_score = parseFloat(item.user_score)
if (item.user_score > item.score) { if (item.user_score > item.score) {
item.user_score = item.score item.user_score = item.score
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论