You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zhishifufei_uniapp/mixins/config.js

11 lines
231 B

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