yingwen
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
<script lang="ts">
|
||||
import { getliveinfo, luzhi } from '@/api';
|
||||
import store from '@/store';
|
||||
import { useI18n } from '@/utils/i18n';
|
||||
import { defineComponent, onMounted, ref, watch } from 'vue';
|
||||
import { useRoute } from 'vue-router';
|
||||
|
||||
@@ -15,10 +16,12 @@ export default defineComponent({
|
||||
setup(){
|
||||
const id = useRoute().query.id;
|
||||
const url = ref<string>()
|
||||
const lan: any = useI18n()
|
||||
if(id && typeof id == 'string'){
|
||||
getliveinfo(parseInt(id)).then((res: any)=>{
|
||||
// luzhi(res.roomid)
|
||||
url.value = `/zhibo.html?roomid=${res.roomid}&memberid=${res.memberid}&name=${escape(store.state.userinfo.name)}&liveid=${res.liveid}`
|
||||
const yuyan = lan.$s();
|
||||
url.value = yuyan == "zh" ? `/zhibo.html?roomid=${res.roomid}&memberid=${res.memberid}&name=${escape(store.state.userinfo.name)}&liveid=${res.liveid}` : `/zhiboen.html?roomid=${res.roomid}&memberid=${res.memberid}&name=${escape(store.state.userinfo.name)}&liveid=${res.liveid}`
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user