Merge branch 'xingyy' into dev
This commit is contained in:
commit
e9635ec269
@ -9,6 +9,7 @@ import paymentResults from '@/pages/liveRoom/components/PaymentResults/index.vue
|
|||||||
import paymentInput from '@/pages/liveRoom/components/PaymentInput/index.vue'
|
import paymentInput from '@/pages/liveRoom/components/PaymentInput/index.vue'
|
||||||
import {goodStore} from "@/stores/goods/index.js"
|
import {goodStore} from "@/stores/goods/index.js"
|
||||||
import {message} from "~/components/x-message/useMessage.js"
|
import {message} from "~/components/x-message/useMessage.js"
|
||||||
|
import { showDialog } from 'vant';
|
||||||
import {artworkBuy} from "@/api/goods/index.js"
|
import {artworkBuy} from "@/api/goods/index.js"
|
||||||
const player = ref(null)
|
const player = ref(null)
|
||||||
const {quoteStatus, show, playerId, show1, auctionData, getSocketData, getLiveLink,fullLive} = liveStore()
|
const {quoteStatus, show, playerId, show1, auctionData, getSocketData, getLiveLink,fullLive} = liveStore()
|
||||||
@ -47,6 +48,14 @@ const initializePlayer = async () => {
|
|||||||
|
|
||||||
player.value.on('error', handlePlayerError)
|
player.value.on('error', handlePlayerError)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
showDialog({
|
||||||
|
message: '直播内容获取失败,是否刷新页面重新获取',
|
||||||
|
}).then(() => {
|
||||||
|
location.reload()
|
||||||
|
// on close
|
||||||
|
}) .catch(() => {
|
||||||
|
// on cancel
|
||||||
|
});;
|
||||||
console.error('播放器初始化失败:', error)
|
console.error('播放器初始化失败:', error)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user