Refactor outdoor fair management:
- Remove .DS_Store file. - Update .gitignore to include .DS_Store. - Modify proxy configuration to use environment variable for backend URL. - Correct component paths in routes. - Implement outdoor fair detail fetching with improved API call. - Enhance EditModal for outdoor fair with dynamic dictionary options. - Add functionality to upload outdoor fair photos. - Update service layer to handle outdoor fair dictionary options.
This commit is contained in:
@@ -9,13 +9,15 @@
|
||||
*
|
||||
* @doc https://umijs.org/docs/guides/proxy
|
||||
*/
|
||||
const localBackendUrl = process.env.LOCAL_BACKEND_URL || 'http://127.0.0.1:9091';
|
||||
|
||||
export default {
|
||||
// 如果需要自定义本地开发服务器 请取消注释按需调整
|
||||
dev: {
|
||||
// localhost:8000/api/** -> https://preview.pro.ant.design/api/**
|
||||
'/api/': {
|
||||
// 要代理的地址
|
||||
target: 'http://localhost:9091', // 本地开发环境
|
||||
target: localBackendUrl,
|
||||
// target: 'http://39.98.44.136:6024/api/shihezi/', // 线上环境
|
||||
// target: 'http://wykj.cdwsx.com/api',// 后端
|
||||
// target: 'http://ks.zhaopinzao8dian.com/api/ks',
|
||||
@@ -26,7 +28,7 @@ export default {
|
||||
// logLevel: 'debug',
|
||||
},
|
||||
'/profile/avatar/': {
|
||||
target: 'http://localhost:9091', // 本地开发环境
|
||||
target: localBackendUrl,
|
||||
// target: 'http://36.105.163.21:30081/api/ks', // 发版
|
||||
// target: 'http://wykj.cdwsx.com/api',
|
||||
// target: 'http://ks.zhaopinzao8dian.com/api/ks',
|
||||
@@ -34,7 +36,7 @@ export default {
|
||||
},
|
||||
'/app/': {
|
||||
// 要代理的地址
|
||||
target: 'http://localhost:9091', // 本地开发环境
|
||||
target: localBackendUrl,
|
||||
// target: 'http://36.105.163.21:30081/api/ks', // 发版
|
||||
// target: 'http://wykj.cdwsx.com/api',
|
||||
// target: 'http://ks.zhaopinzao8dian.com/api/ks',
|
||||
|
||||
Reference in New Issue
Block a user