diff options
| author | zhangyu <[email protected]> | 2024-04-01 16:53:53 +0800 |
|---|---|---|
| committer | zhangyu <[email protected]> | 2024-04-01 16:53:53 +0800 |
| commit | 4d5ff70dd0fdc0718d8df881dff46ddf6ae58b70 (patch) | |
| tree | a6df14fc7ab0e7570f6bd8cf599917dc2323e8cf /nezha-fronted/src/components/common/js/tools.js | |
| parent | e17027390e2b32a53ed2b74c31e14045de3f868b (diff) | |
fix NEZ-3432 : chart-table 默认排序选中后 无法取消 以及 数字排序错误的问题dev-3.8
Diffstat (limited to 'nezha-fronted/src/components/common/js/tools.js')
| -rw-r--r-- | nezha-fronted/src/components/common/js/tools.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nezha-fronted/src/components/common/js/tools.js b/nezha-fronted/src/components/common/js/tools.js index a3f884502..a7dce65d6 100644 --- a/nezha-fronted/src/components/common/js/tools.js +++ b/nezha-fronted/src/components/common/js/tools.js @@ -848,11 +848,11 @@ export const tableSet = { } }, // 本地正序 - asce (prop) { + asce (prop, useOldValue) { return function (obj1, obj2) { let val1 = obj1[prop] let val2 = obj2[prop] - if (prop === 'value') { + if (prop === 'value' || useOldValue) { val1 = obj1.oldValue val2 = obj2.oldValue } |
