mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-17 14:42:51 +00:00
no message
This commit is contained in:
parent
4aa865a60f
commit
ccb14630f7
@ -19,10 +19,7 @@ const convertLocalResourcePath = (() => {
|
|||||||
|
|
||||||
// 设置应用前缀URL
|
// 设置应用前缀URL
|
||||||
if ($A.isEEUIApp) {
|
if ($A.isEEUIApp) {
|
||||||
appPreUrl = $A.eeuiAppRewriteUrl('../public/')
|
appPreUrl = "http://localhost:22223/"
|
||||||
if ($A.isAndroid()) {
|
|
||||||
appPreUrl = appPreUrl.replace(/^file:\/\/assets\//, 'file:///android_asset/')
|
|
||||||
}
|
|
||||||
} else if ($A.Electron) {
|
} else if ($A.Electron) {
|
||||||
appPreUrl = "local-asset://public/"
|
appPreUrl = "local-asset://public/"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -394,7 +394,7 @@ export default {
|
|||||||
}
|
}
|
||||||
let value = $A.rightDelete(this.cacheServerUrl, "/api/");
|
let value = $A.rightDelete(this.cacheServerUrl, "/api/");
|
||||||
value = $A.leftDelete(value, "http://");
|
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
|
value = window.location.host
|
||||||
}
|
}
|
||||||
$A.modalInput({
|
$A.modalInput({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user