Commit a1fdcce6 by 李乾广

修改bug

1 parent ae87b136
...@@ -59,7 +59,7 @@ export default { ...@@ -59,7 +59,7 @@ export default {
} }
}, },
created() { created() {
// this.init(); this.init();
}, },
mounted() { mounted() {
window.playWebVideo = this.playWebVideo; window.playWebVideo = this.playWebVideo;
...@@ -102,7 +102,20 @@ export default { ...@@ -102,7 +102,20 @@ export default {
}) })
} }
}, },
init() {
// 通过URL获取相关参数
const urlParamsMap = getUrlParams(window.location.hash);
console.log('urlParamsMap', urlParamsMap);
Object.keys(this.params).forEach(key => {
if (urlParamsMap[key]) {
this.params[key] = urlParamsMap[key];
}
});
// this.params = obj
if(this.params.gateUnid) {
this.getVideoAddress()
}
},
playWebVideo(obj) { playWebVideo(obj) {
// // 通过URL获取相关参数 // // 通过URL获取相关参数
// const urlParamsMap = getUrlParams(window.location.hash); // const urlParamsMap = getUrlParams(window.location.hash);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!