no message

This commit is contained in:
kuaifan 2025-05-28 10:13:05 +08:00
parent 4aa865a60f
commit ccb14630f7
2 changed files with 2 additions and 5 deletions

View File

@ -19,10 +19,7 @@ const convertLocalResourcePath = (() => {
// 设置应用前缀URL
if ($A.isEEUIApp) {
appPreUrl = $A.eeuiAppRewriteUrl('../public/')
if ($A.isAndroid()) {
appPreUrl = appPreUrl.replace(/^file:\/\/assets\//, 'file:///android_asset/')
}
appPreUrl = "http://localhost:22223/"
} else if ($A.Electron) {
appPreUrl = "local-asset://public/"
}

View File

@ -394,7 +394,7 @@ export default {
}
let value = $A.rightDelete(this.cacheServerUrl, "/api/");
value = $A.leftDelete(value, "http://");
if (!value && /^https?:/.test(window.location.protocol)) {
if (!value && /^https?:/.test(window.location.protocol) && !/^localhost/.test(window.location.host)) {
value = window.location.host
}
$A.modalInput({