feat: apply sugar theme for toasts

This commit is contained in:
Tim
2025-07-21 18:05:45 +08:00
parent de5cb730ff
commit f961fc211c
3 changed files with 18 additions and 1 deletions

View File

@@ -4,6 +4,9 @@ import router from './router'
import './assets/global.css'
import Toast, { POSITION } from 'vue-toastification'
import 'vue-toastification/dist/index.css'
// Use Sugar theme from vue-toast-notification for better toast styling.
// If you prefer Bootstrap style, replace with theme-bootstrap.css instead.
import 'vue-toast-notification/dist/theme-sugar.css'
import { useToast } from 'vue-toastification'
import { checkToken, clearToken } from './utils/auth'
import { initTheme } from './utils/theme'