init: initial commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
var resolvePath = function(path) {
|
||||
if (!path) return '';
|
||||
if (path.indexOf('http') === 0 || path.indexOf('wxfile') === 0) {
|
||||
return path;
|
||||
}
|
||||
return '/assets/' + path;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
resolvePath: resolvePath
|
||||
};
|
||||
Reference in New Issue
Block a user