mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-05 15:01:23 +08:00
Added login expiration reminder. Add logout reminder.
This commit is contained in:
@@ -156,6 +156,7 @@ import {
|
||||
} from '@/constants/Common.constants.js'
|
||||
import _ from 'lodash'
|
||||
import { getUsername, logout } from '@/utils/auth'
|
||||
import { ElMessage } from 'element-plus'
|
||||
|
||||
export default {
|
||||
name: 'MainFrame',
|
||||
@@ -187,7 +188,13 @@ export default {
|
||||
},
|
||||
logout() {
|
||||
logout()
|
||||
this.$router.push({ name: 'Login' })
|
||||
ElMessage.success({
|
||||
dangerouslyUseHTMLString: true,
|
||||
message: '<strong>退出登录</strong>'
|
||||
})
|
||||
setTimeout(() => {
|
||||
this.$router.push({ name: 'Login' })
|
||||
}, 1500)
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
||||
Reference in New Issue
Block a user