We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94bc415 commit 0a0802aCopy full SHA for 0a0802a
src/core/render/index.js
@@ -232,7 +232,13 @@ export function initRender(vm) {
232
}
233
234
if (config.logo) {
235
- config.logo = getPath(vm.router.getBasePath(), config.logo)
+ const isBase64 = /^data:image/.test(config.logo)
236
+ const isExternal = /(?:http[s]?:)?\/\//.test(config.logo)
237
+ const isRelative = /^\./.test(config.logo)
238
+
239
+ if (!isBase64 && !isExternal && !isRelative) {
240
+ config.logo = getPath(vm.router.getBasePath(), config.logo)
241
+ }
242
243
244
html += tpl.main(config)
0 commit comments