From 9d9145ed47ee10518e6927faf2f3e1a24fb66fdb Mon Sep 17 00:00:00 2001 From: wangjinlei <751475802@qq.com> Date: Mon, 8 Jul 2024 15:49:40 +0800 Subject: [PATCH] 1 --- src/api/index.js | 10 ++++------ vue.config.js | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) 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: {