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