新增锁定屏幕功能

This commit is contained in:
RuoYi
2026-03-21 23:29:22 +08:00
parent b43048a589
commit 88c2e4979a
12 changed files with 510 additions and 5 deletions
+2
View File
@@ -1,3 +1,4 @@
import store from '@/store'
import router from '@/router'
import { MessageBox, } from 'element-ui'
import { login, logout, getInfo, refreshToken } from '@/api/login'
@@ -57,6 +58,7 @@ const user = {
commit('SET_TOKEN', data.access_token)
setExpiresIn(data.expires_in)
commit('SET_EXPIRES_IN', data.expires_in)
store.dispatch('lock/unlockScreen')
resolve()
}).catch(error => {
reject(error)