瀏覽代碼

研发阶段必填

dev01 1 年之前
父節點
當前提交
5bfbc3a6b7
共有 2 個文件被更改,包括 1 次插入2 次删除
  1. 0 1
      src/app.jsx
  2. 1 1
      src/pages/punchClock/punchClocks.jsx

+ 0 - 1
src/app.jsx

@@ -31,7 +31,6 @@ class App extends Component {
         content: '新版本已经准备好,是否重启应用?',
         success(res) {
           if (res.confirm) {
-            console.log("go")
             // 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
             updateManager.applyUpdate()
           }

+ 1 - 1
src/pages/punchClock/punchClocks.jsx

@@ -162,7 +162,7 @@ class PunchClocks extends Component {
       Taro.showToast({ title: '请填写研发工时!', icon: 'none' });
       return
     }
-    if (!this.state.selectorChecked) {
+    if (Object.keys(this.state.selectorChecked).length == 0) {
       Taro.showToast({ title: '请选择研发阶段!', icon: 'none' });
       return
     }