update code
parent
234f32caad
commit
3346e22d2f
|
@ -10907,7 +10907,7 @@
|
||||||
var nA,
|
var nA,
|
||||||
DA,
|
DA,
|
||||||
CA,
|
CA,
|
||||||
rA = Mt + "jhbs/easyplayer/libDecoder.wasm";
|
rA = Mt + "xdbs/easyplayer/libDecoder.wasm";
|
||||||
function cA() {
|
function cA() {
|
||||||
try {
|
try {
|
||||||
if (Q)
|
if (Q)
|
||||||
|
|
|
@ -5,7 +5,11 @@
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico?v=2">
|
<link rel="icon" href="<%= BASE_URL %>favicon.ico?v=2">
|
||||||
<title>产发工程数字管理平台-大屏</title>
|
<title>数字建安施工-大屏</title>
|
||||||
|
<script>
|
||||||
|
window.XDAPP="/xd/";
|
||||||
|
window.XDBSAPP="/xdbs/"
|
||||||
|
</script>
|
||||||
<link rel="stylesheet" href="/cdn/element-ui/lib/theme-chalk/index.css">
|
<link rel="stylesheet" href="/cdn/element-ui/lib/theme-chalk/index.css">
|
||||||
<link rel="stylesheet" href="css/largeScreenLayout.css?v=20240415">
|
<link rel="stylesheet" href="css/largeScreenLayout.css?v=20240415">
|
||||||
<link rel="stylesheet" href="css/largeScreenStyle.css?v=20240415">
|
<link rel="stylesheet" href="css/largeScreenStyle.css?v=20240415">
|
||||||
|
@ -70,13 +74,14 @@
|
||||||
top: 0px;
|
top: 0px;
|
||||||
left: 0px;" id="divTest">
|
left: 0px;" id="divTest">
|
||||||
<div style="font-size: 40px;
|
<div style="font-size: 40px;
|
||||||
position: absolute;
|
position: absolute;display: none;
|
||||||
right: 10px;
|
right: 10px;
|
||||||
color: red;
|
color: red;
|
||||||
">这是测试环境</div>
|
">这是测试环境</div>
|
||||||
<div><a class="link-prod" style="position: absolute;top:50px;font-size: 40px;right:10px;" href="https://szgc.jhncidg.com/">访问生产环境</a></div>
|
<div><a class="link-prod" style="position: absolute;top:50px;font-size: 40px;right:10px;" href="https://szgc.jhncidg.com/">访问生产环境</a></div>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
|
/*
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
if(location.href.indexOf("szgc.jhncidg.com")==-1 && location.href.indexOf("localhost")==-1){
|
if(location.href.indexOf("szgc.jhncidg.com")==-1 && location.href.indexOf("localhost")==-1){
|
||||||
document.getElementById("divTest").style.display="block";
|
document.getElementById("divTest").style.display="block";
|
||||||
|
@ -86,6 +91,7 @@
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
document.getElementById("divTest").remove();
|
document.getElementById("divTest").remove();
|
||||||
},60*1000);
|
},60*1000);
|
||||||
|
*/
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -354,7 +354,7 @@ export default {
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.$store.dispatch('LogOut').then(() => {
|
this.$store.dispatch('LogOut').then(() => {
|
||||||
location.href = '/';
|
location.href =window.XDBSAPP;
|
||||||
})
|
})
|
||||||
}).catch(() => { });
|
}).catch(() => { });
|
||||||
},
|
},
|
||||||
|
|
|
@ -92,7 +92,7 @@ export default {
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.$store.dispatch('LogOut').then(() => {
|
this.$store.dispatch('LogOut').then(() => {
|
||||||
location.href = '/';
|
location.href = window.XDBSAPP;
|
||||||
})
|
})
|
||||||
}).catch(() => { });
|
}).catch(() => { });
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,11 +42,8 @@ router.beforeEach((to, from, next) => {
|
||||||
next()
|
next()
|
||||||
} else {
|
} else {
|
||||||
//next(`/login?redirect=#/index`) // 否则全部重定向到登录页
|
//next(`/login?redirect=#/index`) // 否则全部重定向到登录页
|
||||||
let base="/";
|
let base=window.XDAPP;
|
||||||
if(location.host.indexOf("localhost")>=0){
|
location.href=base+"#/login?redirect="+window.XDBSAPP+"#/";
|
||||||
base="/xd/"
|
|
||||||
}
|
|
||||||
location.href=base+"#/login?redirect=/xdbs/#/";
|
|
||||||
NProgress.done()
|
NProgress.done()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,15 +76,16 @@ service.interceptors.response.use(res => {
|
||||||
return res.data
|
return res.data
|
||||||
}
|
}
|
||||||
if (code === 401) {
|
if (code === 401) {
|
||||||
|
debugger
|
||||||
if (!isRelogin.show) {
|
if (!isRelogin.show) {
|
||||||
isRelogin.show = true;
|
isRelogin.show = true;
|
||||||
MessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', { confirmButtonText: '重新登录', cancelButtonText: '取消', type: 'warning' }).then(() => {
|
MessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', { confirmButtonText: '重新登录', cancelButtonText: '取消', type: 'warning' }).then(() => {
|
||||||
isRelogin.show = false;
|
isRelogin.show = false;
|
||||||
if(location.href.indexOf("localhost")>=0){
|
if(location.href.indexOf("localhost")>=0){
|
||||||
//location.href = `/#/login?redirect=${encodeURIComponent("/jhbs/")}`;
|
//location.href = `/#/login?redirect=${encodeURIComponent("/xdbs/")}`;
|
||||||
location.href=`http://localhost/#/login?redirect=${encodeURI('http://localhost:3000/jhbs/')}`
|
location.href=`http://localhost/#/login?redirect=${encodeURI('http://localhost:3000/xdbs/')}`
|
||||||
}else{
|
}else{
|
||||||
location.href = `/#/login?redirect=${encodeURIComponent("/jhbs/")}`;
|
location.href = window.XDAPP+`#/login?redirect=${encodeURIComponent(window.XDBSAPP)}`;
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
isRelogin.show = false;
|
isRelogin.show = false;
|
||||||
|
|
|
@ -71,6 +71,7 @@ module.exports = defineConfig({
|
||||||
vue: "Vue",
|
vue: "Vue",
|
||||||
};
|
};
|
||||||
if (process.env.NODE_ENV === "production") {
|
if (process.env.NODE_ENV === "production") {
|
||||||
|
/*
|
||||||
config.plugins.push(
|
config.plugins.push(
|
||||||
new WebpackObfuscator(
|
new WebpackObfuscator(
|
||||||
{
|
{
|
||||||
|
@ -87,6 +88,7 @@ module.exports = defineConfig({
|
||||||
[] // 需要排除混淆的文件
|
[] // 需要排除混淆的文件
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue