xujing 5 年 前
コミット
c4ef256fb8
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1
    1
      src/pages/news/detail/index.js

+ 1
- 1
src/pages/news/detail/index.js ファイルの表示

@@ -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
   }