fix: 解决数据库 dashboard 跳转失败的问题

This commit is contained in:
ssongliu
2022-12-07 18:38:52 +08:00
parent 9a214885c3
commit a6140aa647
6 changed files with 19 additions and 8 deletions

View File

@@ -245,7 +245,9 @@ const goDashboard = async () => {
phpVisiable.value = true;
return;
}
window.open('http://localhost:' + phpadminPort.value, '_blank');
let href = window.location.href;
let ipLocal = href.split('//')[1].split(':')[0];
window.open(`http://${ipLocal}:${phpadminPort.value}`, '_blank');
};
const loadDashboardPort = async () => {