fix: 🐛 初次访问时前端js错误

This commit is contained in:
tk 2025-04-07 16:38:27 +08:00 committed by nsnail
parent eef6661c92
commit 9b6e053721

View File

@ -21,8 +21,9 @@ export default (error, vm) => {
const errorName = errorMap[error.name] || '未知错误'
console.warn(`[error]: ${error}`)
console.error(error)
//throw error;
if (error.name === 'TypeError') {
window.location.reload()
}
vm.$nextTick(() => {
vm.$notify.error({