Skip to content

Commit

Permalink
chore: improve style of error notification
Browse files Browse the repository at this point in the history
  • Loading branch information
D-D-H committed Mar 9, 2024
1 parent 609ddc1 commit 1cb53f8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/src/stores/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { ElNotification } from 'element-plus';
import { defineStore } from 'pinia';
// @ts-ignore
import Cookies from 'js-cookie';
import { h } from 'vue';

export interface User {
name: string;
Expand Down Expand Up @@ -151,8 +152,8 @@ axios.interceptors.response.use(
if (data && data.hasOwnProperty('errorCode')) {
ElNotification.error({
title: data.errorCode,
message: data.message,
offset: 80,
message: h('p', { style: 'word-break: break-all' }, data.message),
offset: 50,
duration: 0,
showClose: true
});
Expand Down

0 comments on commit 1cb53f8

Please sign in to comment.