add new lights, add login and role to it, add services page
This commit is contained in:
@@ -22,6 +22,19 @@ export function useNotify() {
|
||||
break;
|
||||
}
|
||||
|
||||
if (response instanceof Error) {
|
||||
const resp = response as Response;
|
||||
if (resp.response?.data?.error) {
|
||||
$q?.notify({
|
||||
message: resp.response.data.message as string,
|
||||
color: color,
|
||||
position: 'bottom-right',
|
||||
icon: icon,
|
||||
timeout: timeout,
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (response) {
|
||||
const message = typeof response === 'string' ? response : (response.message ?? '');
|
||||
if (message === '') {
|
||||
|
Reference in New Issue
Block a user