useApplicationSettingIndexStore.js
854 Bytes
import { defineStore } from 'pinia';
import { ref } from 'vue';
export const useApplicationSettingIndexStore = defineStore('application-setting-index', () => {
const isSliceMessageBoxVisible = ref(false);
const isSendToPrinterModalVisible = ref(false);
const setSliceMessageBoxVisible = (val) => {
isSliceMessageBoxVisible.value = val;
};
const setSendToPrinterModalVisible = (val) => {
isSendToPrinterModalVisible.value = val;
};
const handleSaveDraft = () => {
console.log('save save');
};
const handeSendToPrinter = () => {
console.log('send send');
};
return {
isSliceMessageBoxVisible,
isSendToPrinterModalVisible,
setSliceMessageBoxVisible,
setSendToPrinterModalVisible,
handleSaveDraft,
handeSendToPrinter
};
});