mirror of https://github.com/halo-dev/halo-admin
Change list media type api path
parent
bb04664b7e
commit
8e994922c7
|
@ -37,7 +37,7 @@ attachmentApi.update = (attachmentId, attachment) => {
|
|||
|
||||
attachmentApi.getMediaTypes = () => {
|
||||
return service({
|
||||
url: `${baseUrl}/mediaTypes`,
|
||||
url: `${baseUrl}/media_types`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ import {
|
|||
Vue.use(Router)
|
||||
|
||||
export default new Router({
|
||||
mode: 'history',
|
||||
mode: 'hash',
|
||||
base: process.env.BASE_URL,
|
||||
scrollBehavior: () => ({
|
||||
y: 0
|
||||
|
|
|
@ -5,7 +5,7 @@ import Vue from 'vue'
|
|||
import { message } from 'ant-design-vue'
|
||||
|
||||
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,
|
||||
withCredentials: true
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue