This commit is contained in:
xiaojunnuo
2025-04-08 23:36:50 +08:00
parent 64e5449ab3
commit 4bb0918e27
24 changed files with 113 additions and 91 deletions
@@ -20,14 +20,14 @@
</template>
<script lang="ts" setup>
import { onMounted } from "vue";
import { onActivated, onMounted } from "vue";
import { useFs } from "@fast-crud/fast-crud";
import createCrudOptions from "./crud";
import { message, Modal } from "ant-design-vue";
import { DeleteBatch } from "./api";
defineOptions({
name: "CnameProvider"
name: "CnameProvider",
});
const { crudBinding, crudRef, crudExpose, context } = useFs({ createCrudOptions });
@@ -42,7 +42,7 @@ const handleBatchDelete = () => {
message.info("删除成功");
crudExpose.doRefresh();
selectedRowKeys.value = [];
}
},
});
} else {
message.error("请先勾选记录");
@@ -53,5 +53,8 @@ const handleBatchDelete = () => {
onMounted(() => {
crudExpose.doRefresh();
});
onActivated(async () => {
await crudExpose.doRefresh();
});
</script>
<style lang="less"></style>