douyin/src/config/index.ts
2024-04-08 02:06:05 +08:00

15 lines
370 B
TypeScript

export default {
baseUrl: 'https://dy.ttentau.top/imgs/',
imgPath: '/imgs/',
filePreview: 'http://192.168.0.103/static/uploads/'
}
const BASE_URL_MAP = {
DEV: '',
PROD: '',
UNI: 'https://dy.ttentau.top'
}
export const BASE_URL = BASE_URL_MAP[import.meta.env.VITE_ENV]
export const IMG_URL = BASE_URL + '/images/'
export const FILE_URL = BASE_URL + '/data/'