diff --git a/src/api/index.js b/src/api/index.js index e144931..c805ccb 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -13,17 +13,15 @@ axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded // axios.defaults.baseURL = 'http://testtougao.tmrjournals.com/public/index.php/' // axios.defaults.baseURL = 'http://www.tougao.com/' -// 记得切换 +// const service = axios.create({ // baseURL: 'http://testtougao.tmrjournals.com/public/index.php/', - // baseURL: 'https://submission.tmrjournals.com/', //正式 记得切换 - // baseURL: 'http://www.tougao.com/', //测试本地 记得切换 - // baseURL: '/api', //本地 - baseURL: '/', //正式 + // baseURL: 'http://www.tougao.com/public/index.php/', + baseURL: '/', }); const service_new = axios.create({ - baseURL: 'http://journal.com/', + baseURL: 'http://journal.com/', // baseURL: '/', }); diff --git a/vue.config.js b/vue.config.js index 729c206..80f8a44 100644 --- a/vue.config.js +++ b/vue.config.js @@ -70,7 +70,7 @@ module.exports = { proxy: { '/api': { // target: 'https://www.tmrjournals.cn', - // target: 'http://www.tougao.com/', + // target: 'http://www.tougao.com/public/index.php/', target: 'https://submission.tmrjournals.com/',//正式 changeOrigin: true, pathRewrite: {