AI_Painting_V2.0/src/utils/tokenError.js
2026-03-09 01:43:32 +08:00

16 lines
453 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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)
})
}