Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
jijin
/
dance-pc
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
e0107b0b
authored
2024-06-03 17:29:11 +0800
by
zhangmeng
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
票务代理
1 parent
8ba77ad8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
src/viewsPc/seat/utils/request.js
vite.config.js
src/viewsPc/seat/utils/request.js
View file @
e0107b0
...
...
@@ -8,7 +8,10 @@ import { ElMessage } from "element-plus";
import
{
useStorage
}
from
"@vueuse/core/index"
;
const
language
=
useStorage
(
"language"
,
0
);
const
baseURL
=
"https://ticketh5.wdsfwuxicenter.com/ticket"
;
//"http://book.xiaojinyu.games"; // 这里填入你的基础 API URL
// const baseURL = "https://ticketh5.wdsfwuxicenter.com/ticket"; //"http://book.xiaojinyu.games"; // 这里填入你的基础 API URL
const
baseURL
=
"ticket"
;
//"http://book.xiaojinyu.games"; // 这里填入你的基础 API URL
const
timeout
=
15000
;
// 请求超时时间
const
http
=
axios
.
create
({
...
...
vite.config.js
View file @
e0107b0
...
...
@@ -82,10 +82,20 @@ export default defineConfig(({ mode, command }) => {
rewrite
:
(
p
)
=>
p
.
replace
(
/^
\/
dev-api
\/
ztx-webSite/
,
''
)
},
'/dev-api'
:
{
// target: 'http://192.168.1.118:8081/',
target
:
'https://jijin.wtwuxicenter.com/stage-api'
,
target
:
'http://192.168.1.118:8081/'
,
// target: 'http://192.168.1.131:8081/',
// target: 'https://jijin.wtwuxicenter.com/stage-api',
// target: 'https://wdsfwuxicenter.com/stage-api/',
changeOrigin
:
true
,
rewrite
:
(
p
)
=>
p
.
replace
(
/^
\/
dev-api/
,
''
)
},
'/ticket'
:
{
target
:
'http://192.168.1.118:8098/'
,
// target: 'http://192.168.1.131:8081/',
// target: 'https://jijin.wtwuxicenter.com/stage-api',
// target: 'https://wdsfwuxicenter.com/stage-api/',
changeOrigin
:
true
,
rewrite
:
(
p
)
=>
p
.
replace
(
/^
\/
ticket/
,
''
)
}
}
},
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment