新增锁定屏幕功能

This commit is contained in:
RuoYi
2026-03-21 23:30:00 +08:00
parent c363bf88f5
commit 06f6d1b47f
12 changed files with 510 additions and 5 deletions

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)