fix: layout and utilsStore
This commit is contained in:
parent
7f3c22c79b
commit
bcd81d0f41
4 changed files with 7788 additions and 7723 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue