| | |
| | | |
| | | virtualUserId?: string; |
| | | virtualPhoneNumber?: string; |
| | | |
| | | wxCode?: string; |
| | | wxOpenId?: string; |
| | | } |
| | | |
| | | const goAuthorization = debounce( |
| | |
| | | |
| | | virtualUserId: storageVirtualUser?.virtualUserId ?? '', |
| | | virtualPhoneNumber: storageVirtualUser?.virtualPhoneNumber ?? '', |
| | | |
| | | wxCode: '', |
| | | wxOpenId: '', |
| | | }; |
| | | }, |
| | | getters: { |
| | |
| | | setUserDetail(detail); |
| | | }, |
| | | |
| | | setWxCode(code: string) { |
| | | this.wxCode = code; |
| | | }, |
| | | setWxOpenId(openId: string) { |
| | | this.wxOpenId = openId; |
| | | }, |
| | | |
| | | resetState() { |
| | | this.userInfo = null; |
| | | this.token = ''; |
| | |
| | | this.userDetail = null; |
| | | this.virtualUserId = ''; |
| | | this.virtualPhoneNumber = ''; |
| | | this.wxCode = ''; |
| | | this.wxOpenId = ''; |
| | | removeUserInfo(); |
| | | removeUserDetail(); |
| | | removeStorageVirtualUserId(); |