mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-15 05:12:49 +00:00
no message
This commit is contained in:
parent
4aa865a60f
commit
ccb14630f7
@ -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/"
|
||||
}
|
||||
|
||||
@ -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({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user