Tabs: use computed on titles

This commit is contained in:
cgfhtw
2024-03-28 15:35:43 +01:00
parent abfd92e387
commit 24641d1444
+2 -2
View File
@@ -71,7 +71,7 @@ export default {
tabs[key] = {
component: Vue.markRaw(Vue.defineAsyncComponent(() => import(item.component))),
title: item.title || key,
title: Vue.computed(() => item.title || key),
config: item.config,
key
}
@@ -83,7 +83,7 @@ export default {
tabs[key] = {
component: Vue.markRaw(Vue.defineAsyncComponent(() => import(item.component))),
title: item.title || key,
title: Vue.computed(() => item.title || key),
config: item.config,
key
}