mirror of https://github.com/halo-dev/halo
Change list media type api path
parent
bb04664b7e
commit
8e994922c7
|
@ -37,7 +37,7 @@ attachmentApi.update = (attachmentId, attachment) => {
|
||||||
|
|
||||||
attachmentApi.getMediaTypes = () => {
|
attachmentApi.getMediaTypes = () => {
|
||||||
return service({
|
return service({
|
||||||
url: `${baseUrl}/mediaTypes`,
|
url: `${baseUrl}/media_types`,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@ import {
|
||||||
Vue.use(Router)
|
Vue.use(Router)
|
||||||
|
|
||||||
export default new Router({
|
export default new Router({
|
||||||
mode: 'history',
|
mode: 'hash',
|
||||||
base: process.env.BASE_URL,
|
base: process.env.BASE_URL,
|
||||||
scrollBehavior: () => ({
|
scrollBehavior: () => ({
|
||||||
y: 0
|
y: 0
|
||||||
|
|
|
@ -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' ? 'https://ryanc.cc/' : 'http://localhost:8090',
|
baseURL: process.env.NODE_ENV === 'production' ? 'http://terransforce.ddns.net:8090' : 'http://localhost:8090',
|
||||||
timeout: 5000,
|
timeout: 5000,
|
||||||
withCredentials: true
|
withCredentials: true
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue