feat: replace alerts with toast notifications

This commit is contained in:
Tim
2025-07-04 22:20:01 +08:00
parent b17df96060
commit 245190d477
5 changed files with 28 additions and 12 deletions

View File

@@ -2,6 +2,8 @@ import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import './assets/global.css'
import Toast, { POSITION } from 'vue-toastification'
import 'vue-toastification/dist/index.css'
// Configurable API domain and port
export const API_DOMAIN =
@@ -10,4 +12,7 @@ export const API_DOMAIN =
export const API_PORT = process.env.VUE_APP_API_PORT || window.location.port
export const API_BASE_URL = API_PORT ? `${API_DOMAIN}:${API_PORT}` : API_DOMAIN
createApp(App).use(router).mount('#app')
const app = createApp(App)
app.use(router)
app.use(Toast, { position: POSITION.TOP_RIGHT })
app.mount('#app')