parent
94bc415534
commit
0a0802aded
1 changed files with 7 additions and 1 deletions
|
|
@ -232,7 +232,13 @@ export function initRender(vm) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.logo) {
|
if (config.logo) {
|
||||||
config.logo = getPath(vm.router.getBasePath(), config.logo)
|
const isBase64 = /^data:image/.test(config.logo)
|
||||||
|
const isExternal = /(?:http[s]?:)?\/\//.test(config.logo)
|
||||||
|
const isRelative = /^\./.test(config.logo)
|
||||||
|
|
||||||
|
if (!isBase64 && !isExternal && !isRelative) {
|
||||||
|
config.logo = getPath(vm.router.getBasePath(), config.logo)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
html += tpl.main(config)
|
html += tpl.main(config)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue