修复了部分问题

This commit is contained in:
2020-11-27 14:53:43 +08:00
parent a35253b4b9
commit ae1ba85e2c
4 changed files with 7 additions and 4 deletions

View File

@@ -6,6 +6,7 @@
</style>
<script lang="ts">
import { getliveinfo } from '@/api';
import store from '@/store';
import { defineComponent, ref } from 'vue';
import { useRoute } from 'vue-router';
@@ -16,7 +17,7 @@ export default defineComponent({
const url = ref<string>()
if(id && typeof id == 'string'){
getliveinfo(parseInt(id)).then((res: any)=>{
url.value = `/zhibo.html?roomid=${res.roomid}&memberid=${res.memberid}`
url.value = `/zhibo.html?roomid=${res.roomid}&memberid=${res.memberid}&name=${escape(store.state.userinfo.name)}`
})
}