mirror of
https://github.com/ccmjga/zhilu-admin
synced 2026-03-19 00:23:45 +08:00
add notify ai
This commit is contained in:
19
frontend/src/composables/store/useActionExcStore.ts
Normal file
19
frontend/src/composables/store/useActionExcStore.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { defineStore } from "pinia";
|
||||
|
||||
export const useActionExcStore = defineStore("refresh", {
|
||||
state: () => {
|
||||
return {
|
||||
callback: (result: boolean) => {
|
||||
console.debug("callback", result);
|
||||
},
|
||||
};
|
||||
},
|
||||
actions: {
|
||||
notify(result: boolean) {
|
||||
this.callback(result);
|
||||
},
|
||||
setCallback(callback: (result: boolean) => void) {
|
||||
this.callback = callback;
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user