<template>
	<fs-page>
		<fs-crud ref="crudRef" v-bind="crudBinding">
		</fs-crud>
	</fs-page>
</template>

<script lang="ts" setup name="protocolList">
import { onMounted } from 'vue';
import { useFs } from '@fast-crud/fast-crud';
import createCrudOptions from './crud';

// 初始化crud配置
const { crudRef, crudBinding, crudExpose } = useFs({ createCrudOptions });

// 页面打开后获取列表数据
onMounted(() => {
	crudExpose.doRefresh();
});
</script>
