diff --git a/config/api.config.js b/config/api.config.js index 2964e32..ce3ebc6 100644 --- a/config/api.config.js +++ b/config/api.config.js @@ -3,7 +3,7 @@ import {NODE_ENV} from '../environment' const apisMap = { development: { FE: 'http://localhost:3000', - BASE: 'https://rymcu.com', + BASE: 'http://localhost:8099/forest', CDN: '', PROXY: '/proxy', SOCKET: 'http://localhost:3000/ws', diff --git a/nuxt.config.js b/nuxt.config.js index bf88b72..f21b3ef 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -117,7 +117,7 @@ export default { proxy: [ //proxy配置 ['/api', { target: apiConfig.BASE, //api请求路径 - pathRewrite: {'^/api': isDevMode ? '/api' : '/api'} //重定向请求路径,防止路由、api路径的冲突 + pathRewrite: {'^/api': isDevMode ? '/api/v1' : '/api'} //重定向请求路径,防止路由、api路径的冲突 }], ['/ws', { target: apiConfig.BASE //api请求路径