Commit ff31e086 by 胡锦波

1. init 切换处理

parent b1a12bab
......@@ -77,8 +77,16 @@
}
private onEnterpriseChanged(poid: string, item: OrganizationItemV2) {
if (EnterpriseHost.getPoid() === poid) {
return;
}
EnterpriseHost.setPoid(poid);
EnterpriseHost.setOid(item.id);
const resolve = this.$router.resolve({
name: Direction[Direction.Home],
});
window.location.href = resolve.href;
}
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment