feat: refactor for path support

This commit is contained in:
Methapon2001 2024-07-08 14:08:57 +07:00
parent 4d8e22d64e
commit e631ed9c47
8 changed files with 44 additions and 23 deletions

View file

@ -95,9 +95,17 @@ export function formatNumberDecimal(num: number, point: number): string {
}
const useUtilsStore = defineStore('utilsStore', () => {
const currentTitle = ref<{ title: string; caption: string }>({
const currentTitle = ref<{
title: string;
path: { text: string; handler?: () => unknown }[];
}>({
title: '',
caption: '',
path: [
{
text: '',
handler: () => {},
},
],
});
return {