Kaynağa Gözat

研发阶段必填

dev01 1 yıl önce
ebeveyn
işleme
5bfbc3a6b7
2 değiştirilmiş dosya ile 1 ekleme ve 2 silme
  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
     }