mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-11-29 18:38:32 +08:00
fix 未配置集群地址时无法切换工作空间
pre commit 2.10.42.6
This commit is contained in:
parent
fa2b4ce5d8
commit
91dbdd5dc2
@ -773,7 +773,7 @@ export default {
|
||||
const cluster = this.myClusterList.find((item2) => {
|
||||
return item2.id === item.clusterInfoId;
|
||||
});
|
||||
if (cluster && item.url && location.href.indexOf(cluster.url) !== 0) {
|
||||
if (cluster && cluster.url && location.href.indexOf(cluster.url) !== 0) {
|
||||
let url = `${cluster.url}/#/${this.$route.fullPath}`.replace(/[\\/]+[\\/]/g, "/").replace(":/", "://");
|
||||
url = url.replace(`wid=${this.selectWorkspace.id}`, `wid=${item.id}`);
|
||||
// console.log(location.href.indexOf(cluster.url), url);
|
||||
|
Loading…
Reference in New Issue
Block a user