Apply repository-wide ESLint auto-fix formatting pass
Co-Authored-By: Codex <codex@openai.com>
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
// cindy.chang@dsp.im (Cindy Chang), 2024/5/30
|
||||
/** @module apiError Centralized API error handler with toast notifications. */
|
||||
|
||||
import {useToast} from 'vue-toast-notification';
|
||||
import 'vue-toast-notification/dist/theme-sugar.css';
|
||||
import { useToast } from "vue-toast-notification";
|
||||
import "vue-toast-notification/dist/theme-sugar.css";
|
||||
|
||||
/**
|
||||
* Handles API errors by showing a toast notification.
|
||||
@@ -19,5 +19,5 @@ import 'vue-toast-notification/dist/theme-sugar.css';
|
||||
*/
|
||||
export default function apiError(error, toastMessage) {
|
||||
const $toast = useToast();
|
||||
$toast.default(toastMessage, {position: 'bottom'});
|
||||
$toast.default(toastMessage, { position: "bottom" });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user