fix: workflow navigator title

This commit is contained in:
puriphatt 2024-10-30 16:12:42 +07:00
parent 83d028ec15
commit 856f7f8587

View file

@ -10,6 +10,7 @@ import {
WorkflowTemplatePayload,
} from 'src/stores/workflow-template/types';
import { useWorkflowTemplate } from 'src/stores/workflow-template';
import { useNavigator } from 'src/stores/navigator';
import { dialog } from 'src/stores/utils';
import FloatingActionButton from 'components/FloatingActionButton.vue';
@ -28,6 +29,7 @@ const {
pageSize: workflowPageSize,
pageMax: workflowPageMax,
} = storeToRefs(workflowStore);
const navigatorStore = useNavigator();
const pageState = reactive({
hideStat: false,
@ -254,6 +256,9 @@ async function fetchWorkflowList() {
}
onMounted(async () => {
navigatorStore.current.title = 'flow.title';
navigatorStore.current.path = [{ text: 'flow.caption', i18n: true }];
await fetchWorkflowList();
});