Change list media type api path

pull/3445/head
johnniang 2019-04-20 22:53:30 +08:00
parent bb04664b7e
commit 8e994922c7
3 changed files with 3 additions and 3 deletions

View File

@ -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'
}) })
} }

View File

@ -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

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' ? '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
}) })