mirror of https://github.com/halo-dev/halo-admin
Fix comment api base url
parent
a8b729d615
commit
8037ed24ca
|
@ -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 = {}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue