summaryrefslogtreecommitdiff
path: root/nezha-fronted/src/components/common/js/tools.js
diff options
context:
space:
mode:
Diffstat (limited to 'nezha-fronted/src/components/common/js/tools.js')
-rw-r--r--nezha-fronted/src/components/common/js/tools.js4
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
}