Browse Source

Change list media type api path

pull/9/head
johnniang 6 years ago
parent
commit
8e994922c7
  1. 2
      src/api/attachment.js
  2. 2
      src/router/index.js
  3. 2
      src/utils/service.js

2
src/api/attachment.js

@ -37,7 +37,7 @@ attachmentApi.update = (attachmentId, attachment) => {
attachmentApi.getMediaTypes = () => {
return service({
url: `${baseUrl}/mediaTypes`,
url: `${baseUrl}/media_types`,
method: 'get'
})
}

2
src/router/index.js

@ -8,7 +8,7 @@ import {
Vue.use(Router)
export default new Router({
mode: 'history',
mode: 'hash',
base: process.env.BASE_URL,
scrollBehavior: () => ({
y: 0

2
src/utils/service.js

@ -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…
Cancel
Save