setup版本代码优化

This commit is contained in:
piexlmax
2021-12-31 03:04:38 +08:00
parent 7fd4b1d0f5
commit 236d3c7f33
11 changed files with 80 additions and 41 deletions

View File

@@ -222,6 +222,9 @@ const handleCurrentChange = (val) => {
// 排序
const sortChange = ({ prop, order }) => {
if (prop) {
if (prop === 'ID') {
prop = 'id'
}
searchInfo.value.orderKey = toSQLLine(prop)
searchInfo.value.desc = order === 'descending'
}