12345678910111213141516171819202122232425262728 |
- /*
- * @Author: 文帅
- * @Date: 2022-03-08 16:37:24
- * @LastEditTime: 2022-03-08 17:35:36
- * @LastEditors: 文帅
- * @Description:
- */
- const developmentConfig = {
- name: 'development',
- baseUrl: 'https://twww.winhc.net/api'
- }
- const testConfig = {
- name: 'test',
- baseUrl: 'https://twww.winhc.net/api'
- }
- const productionConfig = {
- name: 'production',
- baseUrl: 'https://www.winhc.net/api'
- }
- const env = [developmentConfig, testConfig, productionConfig]
- export const config = env.find(item =>
- item.name === import.meta.env.MODE
- )!
|