fix(compiler-sfc): externalRE support automatic http/https prefix url pattern (#4922)
fix #4920
This commit is contained in:
@@ -67,6 +67,7 @@ export function render(_ctx, _cache) {
|
||||
_createElementVNode(\\"img\\", { src: _imports_1 }),
|
||||
_createElementVNode(\\"img\\", { src: _imports_1 }),
|
||||
_createElementVNode(\\"img\\", { src: \\"http://example.com/fixtures/logo.png\\" }),
|
||||
_createElementVNode(\\"img\\", { src: \\"//example.com/fixtures/logo.png\\" }),
|
||||
_createElementVNode(\\"img\\", { src: \\"/fixtures/logo.png\\" }),
|
||||
_createElementVNode(\\"img\\", { src: \\"data:image/png;base64,i\\" })
|
||||
], 64 /* STABLE_FRAGMENT */))
|
||||
@@ -99,7 +100,8 @@ export function render(_ctx, _cache) {
|
||||
return (_openBlock(), _createElementBlock(_Fragment, null, [
|
||||
_createElementVNode(\\"img\\", { src: _imports_0 }),
|
||||
_createElementVNode(\\"img\\", { src: _imports_1 }),
|
||||
_createElementVNode(\\"img\\", { src: \\"https://foo.bar/baz.png\\" })
|
||||
_createElementVNode(\\"img\\", { src: \\"https://foo.bar/baz.png\\" }),
|
||||
_createElementVNode(\\"img\\", { src: \\"//foo.bar/baz.png\\" })
|
||||
], 64 /* STABLE_FRAGMENT */))
|
||||
}"
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user