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

修改sort

上级 03177330
......@@ -342,9 +342,9 @@ export default {
computed: {
sorts() {
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'), '')
return dSort
return dSort.toString().replace(new RegExp(',', 'g'), '')
}
},
isWeapp() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论