|
@@ -20,13 +20,13 @@ export const useUserStore = defineStore('user', () => {
|
|
|
const useId = ref(0) // staffId
|
|
const useId = ref(0) // staffId
|
|
|
const timer = ref(true)
|
|
const timer = ref(true)
|
|
|
function keep() {
|
|
function keep() {
|
|
|
- setTimeout(() => {
|
|
|
|
|
- if (timer.value) {
|
|
|
|
|
- keepSession().then(res=>{
|
|
|
|
|
|
|
+ keepSession().then(res=>{
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ if (timer.value) {
|
|
|
keep()
|
|
keep()
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
- }, 600000)
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ }, 600000)
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
// 登录方法
|
|
// 登录方法
|
|
|
function Login(userInfo) {
|
|
function Login(userInfo) {
|