李志伟 3 years ago
parent
commit
624520a7cb
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/components/foodCards/ShopNoteCard/index.jsx

+ 2
- 2
src/components/foodCards/ShopNoteCard/index.jsx View File

30
 
30
 
31
   useEffect(() => {
31
   useEffect(() => {
32
     setValueList(travelMine?.records)
32
     setValueList(travelMine?.records)
33
-    setTraveCoumun(travelMine?.records[0].dayNum)
33
+    setTraveCoumun(travelMine?.records[0]?.dayNum)
34
   }, [travelMine?.records, item])
34
   }, [travelMine?.records, item])
35
 
35
 
36
   const onClose = () => {
36
   const onClose = () => {
82
       Taro.showToast({
82
       Taro.showToast({
83
         title: '暂无行程,已自动创建',
83
         title: '暂无行程,已自动创建',
84
         icon: 'none',
84
         icon: 'none',
85
-        duration: 3000
85
+        duration: 1000
86
       })
86
       })
87
 
87
 
88
       newTravelMine({ title: `我的行程 ${y}-${m}-${d}` }).then(res => {
88
       newTravelMine({ title: `我的行程 ${y}-${m}-${d}` }).then(res => {