Fix comment api base url

pull/9/head
johnniang 2019-04-27 00:27:42 +08:00
parent a8b729d615
commit 8037ed24ca
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import service from '@/utils/service' import service from '@/utils/service'
const baseUrl = '/api/admin/comments' const baseUrl = '/api/admin/posts/comments'
const commentApi = {} const commentApi = {}

View File

@ -5,7 +5,7 @@ import Vue from 'vue'
import { message } from 'ant-design-vue' import { message } from 'ant-design-vue'
const service = axios.create({ 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, timeout: 5000,
withCredentials: true withCredentials: true
}) })