zhishifufei_uniapp/mixins/config.js

11 lines
231 B

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