可信代码库-生产环境token覆盖问题解决
This commit is contained in:
@@ -76,7 +76,9 @@ const goToGovernCenter = async () => {
|
||||
const res = await fetchCheckAuthenticate({});
|
||||
if(res.data.code!==200) return
|
||||
if (res.data.data) {
|
||||
window.location.href = VITE_GOVERNANCE_HOST;
|
||||
// 直接使用 window.open
|
||||
window.open(VITE_GOVERNANCE_HOST, '_blank');
|
||||
// window.location.href = VITE_GOVERNANCE_HOST;
|
||||
} else {
|
||||
Message.warning('请联系平台管理员,开通账号权限');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user