12345678910111213141516171819202122232425262728293031 |
- import { defineStore } from "pinia"
- import { reactive } from 'vue'
- export const useInspectionValueStore = defineStore(
- "inspectionValue",
- () => {
- const inspectionValue = reactive({
- data: null,
- });
-
- function setInspectionValueData(data) {
- inspectionValue.data = data;
- }
-
-
- function clearInspectionValueData() {
- console.log(inspectionValue.data)
- inspectionValue.data = null;
- }
- return {
- inspectionValue,
- setInspectionValueData,
- clearInspectionValueData,
- };
- },
- {
- unistorage: true,
- },
- );
|