diff --git a/src/core/render/index.js b/src/core/render/index.js index 3dfabe195..6c0a51688 100644 --- a/src/core/render/index.js +++ b/src/core/render/index.js @@ -232,7 +232,13 @@ export function initRender(vm) { } 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)