diff --git a/src/api/attachment.js b/src/api/attachment.js index 0ff681075..c2ee02981 100644 --- a/src/api/attachment.js +++ b/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' }) } diff --git a/src/router/index.js b/src/router/index.js index 1a2c6ce79..b15b1449c 100644 --- a/src/router/index.js +++ b/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 diff --git a/src/utils/service.js b/src/utils/service.js index 96a8e3fee..b59996cda 100644 --- a/src/utils/service.js +++ b/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 })