mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-05 19:41:44 +08:00
Update app.js
This commit is contained in:
parent
770e30a695
commit
7d745bce2f
@ -12,7 +12,7 @@ console.log('baseRoot', appRoot)
|
||||
},
|
||||
getFile(url) {
|
||||
console.log('load.file', url)
|
||||
if (!url.test(/^https?:\/\//)) {
|
||||
if (!/^https?:\/\//.test(url)) {
|
||||
url += url;
|
||||
}
|
||||
return fetch(url).then(res => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user