Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pptist
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
pptist
Commits
02fd0c73
Commit
02fd0c73
authored
May 27, 2024
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增注销
parent
49cb8a5e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
4 deletions
+13
-4
.env.development
.env.development
+6
-3
UserService.ts
src/services/UserService.ts
+5
-0
user.ts
src/store/user.ts
+2
-1
No files found.
.env.development
View file @
02fd0c73
VUE_APP_API_URL = 'http://192.168.5.87/api/common/post'
# VUE_APP_API_URL = 'http://192.168.5.87/api/common/post'
VUE_APP_UPLOADURLAPI_URL = 'http://192.168.10.214:8120'
# VUE_APP_UPLOADURLAPI_URL = 'http://192.168.10.214:8120'
VUE_APP_SHARE_URL = 'http://127.0.0.1:8080'
# VUE_APP_SHARE_URL = 'http://127.0.0.1:8080'
\ No newline at end of file
VUE_APP_API_URL = 'https://reborn.oytour.com/api/common/post'
VUE_APP_UPLOADURLAPI_URL = 'https://upload.oytour.com'
VUE_APP_SHARE_URL = 'http://vitto.com'
\ No newline at end of file
src/services/UserService.ts
View file @
02fd0c73
...
@@ -13,6 +13,11 @@ class UserServices{
...
@@ -13,6 +13,11 @@ class UserServices{
return
Api
.
Post
(
"travel_collect"
,
msg
)
return
Api
.
Post
(
"travel_collect"
,
msg
)
}
}
static
async
UserSignOutAsync
():
Promise
<
HttpResponse
>
{
let
msg
=
{}
return
Api
.
Post
(
"travel_set_signout"
,
msg
)
}
static
async
PasswordLoginAsync
(
account
:
string
,
pwd
:
string
,
v_token
:
string
,
tid
:
string
=
''
):
Promise
<
HttpResponse
>
{
static
async
PasswordLoginAsync
(
account
:
string
,
pwd
:
string
,
v_token
:
string
,
tid
:
string
=
''
):
Promise
<
HttpResponse
>
{
let
msg
=
{
account
,
pwd
,
v_token
,
tid
}
let
msg
=
{
account
,
pwd
,
v_token
,
tid
}
return
Api
.
Post
(
"travel_login_password"
,
msg
)
return
Api
.
Post
(
"travel_login_password"
,
msg
)
...
...
src/store/user.ts
View file @
02fd0c73
...
@@ -84,9 +84,10 @@ export const useUserStore = defineStore('user', {
...
@@ -84,9 +84,10 @@ export const useUserStore = defineStore('user', {
}
}
},
},
setUserLoginOut
(){
async
setUserLoginOut
(){
this
.
token
=
''
this
.
token
=
''
this
.
userInfo
=
{}
this
.
userInfo
=
{}
await
UserService
.
UserSignOutAsync
()
window
.
location
.
href
=
'/login'
window
.
location
.
href
=
'/login'
},
},
setNewUserInfo
(
user
:
any
){
setNewUserInfo
(
user
:
any
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment