AI弹窗
This commit is contained in:
17
src/composables/useToast.js
Normal file
17
src/composables/useToast.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import { showToast, showSuccess, showError, showWarning, showInfo } from '@/utils/toast'
|
||||
|
||||
/**
|
||||
* Toast composable
|
||||
* 提供统一的消息提示功能
|
||||
*/
|
||||
export function useToast() {
|
||||
return {
|
||||
showToast,
|
||||
showSuccess,
|
||||
showError,
|
||||
showWarning,
|
||||
showInfo
|
||||
}
|
||||
}
|
||||
|
||||
export default useToast
|
Reference in New Issue
Block a user