| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- // const env = {
- // dev: {
- // MODE: 'development',
- // ENV_API: `http://127.0.0.1:${devPort}` //测试服务器地址
- // },
- // pro: {
- // MODE: 'production',
- // ENV_API: `http://127.0.0.1:${serverPort}` // 正式服务器地址
- // }
- // }
- const devPort = 3000;
- const serverPort = 4201;
- export const baseUrl = process.env.ENV_API;
- console.log('baseUrl', baseUrl);
- export const apiMap = {
- searchProduct: {
- path: `/api/product/search`,
- },
- searchProductMini: {
- path: `/api/product/mini`,
- },
- productInfo: {
- path: `/api/product`
- },
- searchSolution: {
- path: `/api/solution/search`,
- },
- solutionInfo: {
- path: `/api/solution`
- },
- addPageRead: {
- path: `/api/news/read`
- },
- searchNews: {
- path: `/api/news/search`,
- },
- searchNewsMini: {
- path: `/api/news/mini`,
- },
- newsInfo: {
- // 新闻与解决方案都是文章,不多做接口
- path: `/api/solution`
- },
- downloads: {
- path: `/api/download/list`
- },
- downloadItem: {
- path: `/api/download/`
- },
- carouselList: {
- path: `/api/base/carousel`
- },
- carouselAllList: {
- path: `/api/base/carousel/list`
- },
- baseTypes: {
- path: `/api/base/types`
- },
- baseAddCarousel: {
- path: `/api/base/carousel`
- },
- baseUpdateCarousel: {
- path: `/api/base/carousel`
- }
- }
|