xujing hace 5 años
padre
commit
c4ef256fb8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      src/pages/news/detail/index.js

+ 1
- 1
src/pages/news/detail/index.js Ver fichero

@@ -87,7 +87,7 @@ export default class NewsDetail extends Component {
87 87
       Taro.reLaunch({ url: '/pages/auth/index' })
88 88
       return
89 89
     }
90
-    const newsId = this.state
90
+    const { newsId } = this.state
91 91
     this.loadDetail()
92 92
     addNewsUv(newsId)
93 93
   }