diff --git a/src/api/comment.js b/src/api/comment.js index 4b90249d..996d0aa2 100644 --- a/src/api/comment.js +++ b/src/api/comment.js @@ -1,6 +1,6 @@ import service from '@/utils/service' -const baseUrl = '/api/admin/comments' +const baseUrl = '/api/admin/posts/comments' const commentApi = {} diff --git a/src/utils/service.js b/src/utils/service.js index b59996cd..cda00349 100644 --- a/src/utils/service.js +++ b/src/utils/service.js @@ -5,7 +5,7 @@ import Vue from 'vue' import { message } from 'ant-design-vue' const service = axios.create({ - baseURL: process.env.NODE_ENV === 'production' ? 'http://terransforce.ddns.net:8090' : 'http://localhost:8090', + baseURL: process.env.NODE_ENV === 'production' ? '' : 'http://localhost:8090', timeout: 5000, withCredentials: true })