import config from '@/config/index'; const { IMAGE_ASSETS_URL } = config; export default { methods: { getImgPath(path) { return path.indexOf('http') > -1 ? path : IMAGE_ASSETS_URL + path; } } }