新增锁定屏幕功能

This commit is contained in:
RuoYi
2026-03-20 21:51:17 +08:00
parent 01780ea59c
commit 16a78c8113
2 changed files with 3 additions and 1 deletions

View File

@@ -97,7 +97,7 @@ export default {
await this.$store.dispatch('lock/unlockScreen')
this.$router.replace(lockPath)
} catch (err) {
const msg = (err.response && err.response.data && err.response.data.msg) || err.msg || '密码错误,请重新输入'
const msg = err.message || err.toString()
this.showError(msg)
this.password = ''
this.$refs.passwordInput && this.$refs.passwordInput.focus()