张延森 hace 4 años
padre
commit
6148afc23f
Se han modificado 1 ficheros con 3 adiciones y 4 borrados
  1. 3
    4
      src/pages/WuYe/BaoXiuFeiYong/index.jsx

+ 3
- 4
src/pages/WuYe/BaoXiuFeiYong/index.jsx Ver fichero

@@ -1,5 +1,5 @@
1 1
 import React, { useState, useEffect } from 'react'
2
-import Taro, { Current } from '@tarojs/taro'
2
+import Taro, { useRouter } from '@tarojs/taro'
3 3
 import SlidePopup from '@/components/SlidePopup/index'
4 4
 import UploadImg from '@/components/UploadImg/index'
5 5
 import Page from '@/layouts'
@@ -11,13 +11,12 @@ import '@/assets/css/iconfont.less'
11 11
 import './index.less'
12 12
 
13 13
 export default function BaoXiuFeiYong () {
14
-
15
-  console.log(Current.router.params, `params`)
14
+  const router = useRouter()
16 15
 
17 16
   const { user } = useModel('user')
18 17
   const [ShowPopup, setShowPopup] = useState(false)
19 18
   const [PopupType, setPopupType] = useState(0)
20
-  const [CurrnetBaoXiuId] = useState(Current.router.params.id)
19
+  const [CurrnetBaoXiuId] = useState(router.params.id)
21 20
   const [DetailInfo, setDetailInfo] = useState(null)
22 21
   const [BillInfo, setBillInfo] = useState(null)
23 22