From 55cbccfdfd8cecce96a7e9e748ca45421e3b86b2 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 10 二月 2022 18:50:07 +0800
Subject: [PATCH] 2022-02-10

---
 src/tabviews/zshare/mutilform/index.jsx |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/tabviews/zshare/mutilform/index.jsx b/src/tabviews/zshare/mutilform/index.jsx
index 900bfbb..057dd4e 100644
--- a/src/tabviews/zshare/mutilform/index.jsx
+++ b/src/tabviews/zshare/mutilform/index.jsx
@@ -153,7 +153,11 @@
           newval = newval === 'Invalid date' ? '$empty' : newval
         }
         if (newval === '$empty' && item.initval) {
-          newval = moment().subtract(item.initval, 'days').format('YYYY-MM-DD') + ' 00:00:00'
+          if (item.initval === '0') {
+            newval = moment().format('YYYY-MM-DD HH:mm:ss')
+          } else {
+            newval = moment().subtract(item.initval, 'days').format('YYYY-MM-DD') + ' 00:00:00'
+          }
         }
       } else if (item.type === 'switch') { // 寮�鍏冲彧鎺ユ敹鍥哄畾鍊�
         if (newval !== '$empty' && (newval === item.closeVal || newval === item.openVal)) {

--
Gitblit v1.8.0