1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| import { defineStore } from 'pinia';
| import { ref } from 'vue';
|
| export const useErrorLogStore = defineStore('errorLog', () => {
| const logs = ref([]);
| function addErrorLog(log) {
| logs.value.push(log);
| }
|
| function clearErrorLog() {
| logs.value.splice(0);
| }
|
| return { logs, addErrorLog, clearErrorLog };
| });
|
|