We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vue.esm.js:629 [Vue warn]: Error in render: "TypeError: this.currentValue.toFixed is not a function"
found in
---> at node_modules\vux\src\components\rater\index.vue at src\components\scroller\index.vue at src\view\goods\list.vue at src\App.vue 评分如果传进去是字符类型就会报错, 解决方式: sliceValue () { const _val = parseFloat(this.currentValue).toFixed(2).split('.') return _val.length === 1 ? [_val[0], 0] : _val },
The text was updated successfully, but these errors were encountered:
No branches or pull requests
vue.esm.js:629 [Vue warn]: Error in render: "TypeError: this.currentValue.toFixed is not a function"
found in
---> at node_modules\vux\src\components\rater\index.vue
at src\components\scroller\index.vue
at src\view\goods\list.vue
at src\App.vue
评分如果传进去是字符类型就会报错,
解决方式:
sliceValue () {
const _val = parseFloat(this.currentValue).toFixed(2).split('.')
return _val.length === 1 ? [_val[0], 0] : _val
},
The text was updated successfully, but these errors were encountered: