Commit 02fd0c73 authored by 罗超's avatar 罗超

新增注销

parent 49cb8a5e
VUE_APP_API_URL = 'http://192.168.5.87/api/common/post'
VUE_APP_UPLOADURLAPI_URL = 'http://192.168.10.214:8120'
VUE_APP_SHARE_URL = 'http://127.0.0.1:8080'
\ No newline at end of file
# VUE_APP_API_URL = 'http://192.168.5.87/api/common/post'
# VUE_APP_UPLOADURLAPI_URL = 'http://192.168.10.214:8120'
# VUE_APP_SHARE_URL = 'http://127.0.0.1:8080'
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
......@@ -13,6 +13,11 @@ class UserServices{
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>{
let msg = {account,pwd,v_token,tid}
return Api.Post("travel_login_password",msg)
......
......@@ -84,9 +84,10 @@ export const useUserStore = defineStore('user', {
}
},
setUserLoginOut(){
async setUserLoginOut(){
this.token=''
this.userInfo={}
await UserService.UserSignOutAsync()
window.location.href='/login'
},
setNewUserInfo(user:any){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment