fix: 解决数据库 dashboard 跳转失败的问题
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user