Skip to content

Commit

Permalink
chore: make error messages persist #95
Browse files Browse the repository at this point in the history
  • Loading branch information
wazolab committed Apr 30, 2024
1 parent 2b453d9 commit 9d8ec89
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
10 changes: 8 additions & 2 deletions app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ if (authToken.value) {
useState<User>('user', () => user.value)
}
catch (err: any) {
ElMessage.error(err.message)
ElMessage.error({
duration: 0,
message: err.message,
})
}
})
}
Expand All @@ -19,7 +22,10 @@ try {
useState<Project[]>('projects', () => projects.value)
}
catch (err: any) {
ElMessage.error(err.message)
ElMessage.error({
duration: 0,
message: err.message,
})
}
</script>

Expand Down
15 changes: 12 additions & 3 deletions pages/[project]/changes_logs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ try {
useState<Project>('project', () => projectData.value)
}
catch (err: any) {
ElMessage.error(err.message)
ElMessage.error({
duration: 0,
message: err.message,
})
}
try {
Expand All @@ -29,7 +32,10 @@ try {
useState<Log[]>('logs', () => logsData.value)
}
catch (err: any) {
ElMessage.error(err.message)
ElMessage.error({
duration: 0,
message: err.message,
})
}
const baseGeoms = computed(() => {
Expand Down Expand Up @@ -164,7 +170,10 @@ async function handleAccept(identifier?: { id: number, objtype: ObjType }) {
}
}
catch (err: any) {
ElMessage.error(err.message)
ElMessage.error({
duration: 0,
message: err.message,
})
}
}
Expand Down

0 comments on commit 9d8ec89

Please sign in to comment.