You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
745 B
39 lines
745 B
10 months ago
|
<template>
|
||
|
<web-view v-if="src" :src="src"></web-view>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import utils from "@/utils/utils";
|
||
|
import { TOKEN_KEY } from "@/constants/storage-keys";
|
||
|
import config from "@/config/index";
|
||
|
|
||
|
const { BASE_LIVE_URL } = config;
|
||
|
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
src: "",
|
||
|
};
|
||
|
},
|
||
|
onLoad(options) {
|
||
|
const token = utils.getStorage(TOKEN_KEY) || "";
|
||
|
|
||
|
options.__token__ = token;
|
||
|
|
||
|
const data = this.$util.objToParam(options);
|
||
|
|
||
|
this.src = BASE_LIVE_URL + "/wap/live/index?" + data;
|
||
|
console.log(this.src);
|
||
|
|
||
|
},
|
||
|
// onShow(){
|
||
|
// let timestamp = new Date().getTime();
|
||
|
// let src=this.src+`&flag=${timestamp}`
|
||
|
// this.src=src
|
||
|
// },
|
||
|
methods: {},
|
||
|
};
|
||
|
</script>
|
||
|
|
||
|
<style scoped></style>
|