feat: refactor for path support
This commit is contained in:
parent
4d8e22d64e
commit
e631ed9c47
8 changed files with 44 additions and 23 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue