初始化版本,引入智慧食堂模块,第三方模块
This commit is contained in:
commit
d22f88efd3
677 files changed
+69341
No files matched your search
@@ -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 = [];
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user