mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-05-21 14:29:15 +08:00
Update app.js
This commit is contained in:
parent
7d745bce2f
commit
5a5242664f
@ -15,6 +15,7 @@ console.log('baseRoot', appRoot)
|
|||||||
if (!/^https?:\/\//.test(url)) {
|
if (!/^https?:\/\//.test(url)) {
|
||||||
url += url;
|
url += url;
|
||||||
}
|
}
|
||||||
|
url = url.replace(/\/.\//g, '/');
|
||||||
return fetch(url).then(res => {
|
return fetch(url).then(res => {
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
return {getContentData: binary => binary ? res.arrayBuffer() : res.text()};
|
return {getContentData: binary => binary ? res.arrayBuffer() : res.text()};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user