地图资源按需加载
This commit is contained in:
parent
ccb7b2adaa
commit
6ae0aca099
|
@ -206,20 +206,6 @@ export default {
|
|||
that.channelCode = row.channelCode;
|
||||
that.channelName = row.channelName;
|
||||
that.limitedVisible = true;
|
||||
|
||||
// that.$API.am.video.item.req(this.params).then((res) => {
|
||||
// this.url = res.url;
|
||||
// if (flvjs.isSupported()) {
|
||||
// let videoElement = document.getElementById("videoElement");
|
||||
// that.flvPlayer = flvjs.createPlayer({
|
||||
// type: "flv",
|
||||
// url: res.url,
|
||||
// });
|
||||
// that.flvPlayer.attachMediaElement(videoElement);
|
||||
// that.flvPlayer.load();
|
||||
// that.flvPlayer.play();
|
||||
// }
|
||||
// });
|
||||
},
|
||||
viewClose() {
|
||||
this.limitedVisible = false;
|
||||
|
|
|
@ -796,7 +796,6 @@ export default {
|
|||
let host = window.location.host;
|
||||
let jsUrl = host.indexOf('localhost')>-1?'http://222.222.144.147:6013/jsmap/jsmap.js':host+'/jsmap/jsmap.js';
|
||||
that.loadScript('mapId',jsUrl, () => {
|
||||
debugger;
|
||||
window.map = new jsmap.JSMap({
|
||||
mapType: jsmap.JSMapType.MAP_3D,
|
||||
container: 'mapContainer',
|
||||
|
|
Loading…
Reference in New Issue