import Vue from 'vue' // 写到全局常量是因为如果写到env环境, template里面就无法直接写 process.env.***, 这是nuxt的问题 Vue.prototype.$OSS_PREFIX = 'https://mediahub.promocollection.com.au' Vue.prototype.$OSS_S3_PREFIX = 'https://promocollection.s3.ap-southeast-2.amazonaws.com' Vue.prototype.$mediaRegExp = /^(https?:)?\/\/.+(.com.au\/|.com\/)/