初始化版本,引入智慧食堂模块,第三方模块

This commit is contained in:
zjf committed 2024-12-06 18:48:18 +08:00
commit d22f88efd3
677 files changed
+69341

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
import { defineStore } from 'pinia';
export const useMsg = defineStore('msg', {
state: () => ({
msgArray: [] as any[],
}),
actions: {
getAllMsg() {
return this.msgArray;
},
setMsg(value: Object) {
this.msgArray.push(value);
},
removeAll() {
this.msgArray = [];
},
},
});