Files
X-Financial/web/src/composables/useToast.js
DESKTOP-72TV0V4\caoxiaozhu ae63766c91 Add vue-router, login/setup flow and backend logging
Refactor frontend to route-based navigation with vue-router, add
system setup and login pages with API integration. Add structured
logging, access-log middleware and startup lifecycle to FastAPI
backend.
2026-05-06 22:23:42 +08:00

16 lines
265 B
JavaScript

import { ref } from 'vue'
const toastText = ref('')
function toast(text) {
toastText.value = text
clearTimeout(toast.timer)
toast.timer = setTimeout(() => {
toastText.value = ''
}, 3200)
}
export function useToast() {
return { toastText, toast }
}