tanyanfei 3 years ago
parent
commit
5105c84fde
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pages/upload/upload.js

+ 1 - 1
pages/upload/upload.js

@@ -30,7 +30,7 @@ Page({
       return;
     }
     $api.getCurrecord().then(res=>{
-      if (!res.data.today_stock){return}
+      if (!res.data.data.id){return}
       let stock = res.data.data.today_stock
       this.setData({
         stock: stock.length > 0 ? stock : [{ name: '', fund: '' }],