fix: layout and utilsStore

This commit is contained in:
puriphatt 2024-07-02 09:11:10 +00:00
parent 7f3c22c79b
commit bcd81d0f41
4 changed files with 7788 additions and 7723 deletions

View file

@ -1,6 +1,8 @@
import { Dialog } from 'quasar';
import GlobalDialog from 'components/GlobalDialog.vue';
import { ComposerTranslation, useI18n } from 'vue-i18n';
import { defineStore } from 'pinia';
import { ref } from 'vue';
export function dialog(opts: {
title: string;
@ -91,3 +93,16 @@ export function formatNumberDecimal(num: number, point: number): string {
maximumFractionDigits: point,
});
}
const useUtilsStore = defineStore('utilsStore', () => {
const currentTitle = ref<{ title: string; caption: string }>({
title: '',
caption: '',
});
return {
currentTitle,
};
});
export default useUtilsStore;