From 8037ed24caefddcdc17db8eaf087722721e565a1 Mon Sep 17 00:00:00 2001 From: johnniang Date: Sat, 27 Apr 2019 00:27:42 +0800 Subject: [PATCH] Fix comment api base url --- src/api/comment.js | 2 +- src/utils/service.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 })