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