mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-05-14 19:52:10 +08:00
demo file protocal
This commit is contained in:
@@ -131,7 +131,7 @@ class OsController extends Controller {
|
||||
if (Ps.isProd()) {
|
||||
const mainServer = Conf.getValue('mainServer');
|
||||
if (Conf.isFileProtocol(mainServer)) {
|
||||
addr = path.join(Ps.getHomeDir(), mainServer.indexPath);
|
||||
addr = mainServer.protocol + path.join(Ps.getHomeDir(), mainServer.indexPath);
|
||||
} else {
|
||||
addr = mainServer.protocol + mainServer.host + ':' + mainServer.port;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user