This commit is contained in:
wangjinlei
2024-07-08 15:49:40 +08:00
parent 3f75eea441
commit 9d9145ed47
2 changed files with 5 additions and 7 deletions

View File

@@ -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: '/',
});

View File

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