提交 054967a3 authored 作者: lihuihui's avatar lihuihui

修改sort

上级 03177330
...@@ -342,9 +342,9 @@ export default { ...@@ -342,9 +342,9 @@ export default {
computed: { computed: {
sorts() { sorts() {
return function(data) { return function(data) {
const dSort = data.slice().sort().toString().replace(new RegExp(',', 'g'), '') const dSort = Array.isArray(data) ? data.slice().sort() : ''
// console.log(data.sort, '======').toString().replace(new RegExp(',', 'g'), '') // console.log(data.sort, '======').toString().replace(new RegExp(',', 'g'), '')
return dSort return dSort.toString().replace(new RegExp(',', 'g'), '')
} }
}, },
isWeapp() { isWeapp() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论