index.wxs 283 B

1234567891011121314
  1. /* eslint-disable */
  2. var PRESETS = ['error', 'search', 'default', 'network'];
  3. function imageUrl(image) {
  4. if (PRESETS.indexOf(image) !== -1) {
  5. return 'https://img.yzcdn.cn/vant/empty-image-' + image + '.png';
  6. }
  7. return image;
  8. }
  9. module.exports = {
  10. imageUrl: imageUrl,
  11. };