index.wxs 284 B

123456789101112131415
  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. };