tianyun 1 year ago
parent
commit
94eeb846f4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      simple-demo/js/util.js

+ 1 - 1
simple-demo/js/util.js

@@ -458,7 +458,7 @@ function getTimeStamp() {
  * @param func2 入参:旧值、新值 出参:无  logValueChange(oldValue, newValue)
  */
 function monitorAndAct(func1, func2) {
-    let oldValue = undefined;
+    let oldValue = func1();
 
     function checkValue() {
         const newValue = func1();