Commit 7095197f by zhanghaozhe

大咖直播

parent 1f718141
......@@ -5,9 +5,12 @@ import { http } from "@/utils"
import { Popup } from "@common/index"
import QRCode from 'qrcode'
import { uniqBy } from 'lodash'
import { connect } from 'react-redux'
import { withRouter } from 'react-router-dom'
const isFormal = false
@connect(state => ({user: state.user}))
class Live extends Component {
state = {
......@@ -60,6 +63,10 @@ class Live extends Component {
}
makeSubscribe = id => {
const {user, history} = this.props
if (user.hasError) {
history.push('/passport/login')
}
http.get(`${API.home}/sys/createLiveQrcode/${id}`)
.then(res => {
const {data} = res
......@@ -183,4 +190,4 @@ function LiveContent({item, makeSubscribe}) {
)
}
export default Live
export default withRouter(Live)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment