16 lines
453 B
JavaScript
16 lines
453 B
JavaScript
export function userError() {
|
||
// eslint-disable-next-line no-undef
|
||
ElNotification({
|
||
title: '身份错误',
|
||
// eslint-disable-next-line no-undef
|
||
message: h('i', { style: 'color: teal' }, '检测到身份验证失败,请手动刷新页面,\n或者5秒后自动刷新页面重试,'),
|
||
type: 'error',
|
||
duration: 5000
|
||
})
|
||
Promise.resolve().then(() => {
|
||
setTimeout(() => {
|
||
window.location.reload()
|
||
}, 5000)
|
||
})
|
||
}
|