mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
[bugfix] Icon: is src judgement (#1137)
This commit is contained in:
parent
7d8fc12244
commit
e79edf73e2
@ -2,7 +2,7 @@ var bem = require('./bem.wxs').bem;
|
|||||||
var memoize = require('./memoize.wxs').memoize;
|
var memoize = require('./memoize.wxs').memoize;
|
||||||
|
|
||||||
function isSrc(url) {
|
function isSrc(url) {
|
||||||
return url.indexOf('http') === 0 || url.indexOf('data:image') === 0;
|
return url.indexOf('http') === 0 || url.indexOf('data:image') === 0 || url.indexOf('//') === 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user