add notify ai

This commit is contained in:
Chuck1sn
2025-06-13 11:43:35 +08:00
parent 81b02e68e7
commit a00c3e129f
21 changed files with 397 additions and 233 deletions

View 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;
},
},
});