修改哈尔滨路径

This commit is contained in:
sunzhenyu 2020-07-21 15:32:51 +08:00
parent 62a9562f3e
commit c07a57ed1c
3 changed files with 7 additions and 12 deletions

View File

@ -12,10 +12,10 @@ if(BASE_API == "https://test.joylink.club/jlcloud"){
uploadurl = "https://joylink.club/jlfile";
asseturl = "https://joylink.club/oss/joylink"
}else{
uploadurl = "https://test.joylink.club/jlfile";
asseturl = "https://test.joylink.club/oss/joylink"
// uploadurl = "../static";
// asseturl = "../static"
// uploadurl = "https://test.joylink.club/jlfile";
// asseturl = "https://test.joylink.club/oss/joylink"
uploadurl = "../static";
asseturl = "../static"
}
const BASE_UPLOAD_API = uploadurl;
export const BASE_ASSET_API = asseturl;

View File

@ -161,11 +161,13 @@ export function Jl3ddeviceNew(dom,group,token,skinCode) {
}
window.onresize = function () {
console.log("ssss");
scope.camera.aspect = scope.dom.offsetWidth / scope.dom.offsetHeight;
scope.camera.updateProjectionMatrix();
scope.renderer.setSize(scope.dom.offsetWidth, scope.dom.offsetHeight);
}
this.domresize = function(){
console.log("domssss");
scope.camera.aspect = scope.dom.offsetWidth / scope.dom.offsetHeight;
scope.camera.updateProjectionMatrix();
scope.renderer.setSize(scope.dom.offsetWidth, scope.dom.offsetHeight);

View File

@ -4,14 +4,7 @@ import { getBaseUrl } from '@/utils/baseUrl';
import { Loading } from 'element-ui';
import { BASE_ASSET_API } from '@/api/jlmap3d/assets3d.js';
const BASE_API = getBaseUrl();
let modelurl = "../../static/model";
// if(BASE_API == 'https://joylink.club/jlcloud'){
// modelurl = "https://joylink.club/oss";
// }else if(BASE_API == 'https://test.joylink.club/jlcloud'){
// modelurl = "https://test.joylink.club/oss";
// }else {
// modelurl = "https://test.joylink.club/oss";
// }
let defaultsignal = {
id:"3",
name:"低位三灯",