fix(goods): 修复首页和直播室页面的问题
- 在 liveRoom 页面中添加 getAuctionDetail 调用,以获取拍卖详情 - 在 home 页面中移除不必要的 getAuctionDetail
This commit is contained in:
parent
3db1666c04
commit
a11700a15a
@ -5,7 +5,7 @@ import ItemList from './components/ItemList/index.vue'
|
||||
import Cescribe from './components/Cescribe/index.vue'
|
||||
|
||||
import {liveStore} from "~/stores/live/index.js";
|
||||
const {getAuctionDetail, auctionDetail,getArtworkList} = goodStore();
|
||||
const {auctionDetail,getArtworkList} = goodStore();
|
||||
const {fullLive} = liveStore()
|
||||
const changeLive = () => {
|
||||
if (!fullLive.value){
|
||||
@ -16,7 +16,7 @@ const changeLive = () => {
|
||||
}
|
||||
}
|
||||
|
||||
await getAuctionDetail()
|
||||
|
||||
</script>
|
||||
<template>
|
||||
<div class="grow-1">
|
||||
|
@ -14,7 +14,7 @@ import {showConfirmDialog} from 'vant';
|
||||
import {artworkBuy} from "@/api/goods/index.js"
|
||||
import {useI18n} from 'vue-i18n'
|
||||
const { t } = useI18n()
|
||||
const { auctionDetail} = goodStore();
|
||||
const { auctionDetail,getAuctionDetail} = goodStore();
|
||||
const player = ref(null)
|
||||
const {quoteStatus, show, playerId, show1, auctionData, getSocketData, getLiveLink, fullLive} = liveStore()
|
||||
const pullLink = ref('')
|
||||
@ -98,6 +98,7 @@ const initializePlayer = async () => {
|
||||
|
||||
|
||||
onMounted(async () => {
|
||||
await getAuctionDetail()
|
||||
pullLink.value = await getLiveLink()
|
||||
if (auctionDetail.value.isLiving===1){
|
||||
initializePlayer()
|
||||
|
Loading…
Reference in New Issue
Block a user