he wei
2025-04-25 53310b6f8b2274c3d68674648446451761edea21
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 };
});