Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨炀
/
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
7328b170
authored
2024-05-20 13:54:12 +0800
by
yyx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
98f128c8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
src/viewsPc/seat/ticket-detail.vue
src/viewsPc/seat/utils/request.js
src/viewsPc/seat/ticket-detail.vue
View file @
7328b17
...
...
@@ -83,7 +83,7 @@ const select_form = reactive({
// 检查登录
// const ticketUserToken = getToken();
// if (!ticketUserToken) {
const
userId
=
userStore
.
user
?.
userId
;
//
[TODO] 从原项目中取已登录的用户ID
const
userId
=
userStore
.
user
?.
userId
;
//
userId
if
(
!
userId
)
{
// 未登录,打开登录弹窗
return
userStore
.
setVisitor
();
...
...
src/viewsPc/seat/utils/request.js
View file @
7328b17
...
...
@@ -4,7 +4,7 @@ import axios from "axios";
import
{
getToken
}
from
"./local-store"
;
import
{
ElMessage
}
from
"element-plus"
;
const
baseURL
=
"http
://101.43.15.205:8084
"
;
//"http://book.xiaojinyu.games"; // 这里填入你的基础 API URL
const
baseURL
=
"http
s://radv4.gitliuyi.top/ticket
"
;
//"http://book.xiaojinyu.games"; // 这里填入你的基础 API URL
const
timeout
=
15000
;
// 请求超时时间
const
http
=
axios
.
create
({
...
...
@@ -20,7 +20,7 @@ http.interceptors.request.use(
(
config
)
=>
{
// 在发送请求之前做些什么
const
TOKEN
=
getToken
();
if
(
TOKEN
)
config
.
headers
.
Authorization
=
TOKEN
;
if
(
TOKEN
)
config
.
headers
.
Authorization
=
TOKEN
;
if
(
config
.
method
==
"get"
)
config
.
params
=
config
.
data
;
return
config
;
},
...
...
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