feat: keepAlive功能

This commit is contained in:
H0nGzA1
2023-05-17 23:34:41 +08:00
parent adc522c180
commit 60035767ad
15 changed files with 352 additions and 360 deletions

View File

@@ -1,18 +0,0 @@
<template>
<fs-page>
<fs-crud ref="crudRef" v-bind="crudBinding"> </fs-crud>
</fs-page>
</template>
<script lang="ts" setup>
import { ref, onMounted } from 'vue';
import { useFs } from '@fast-crud/fast-crud';
import { createCrudOptions } from './crud';
const { crudBinding, crudRef, crudExpose } = useFs({ createCrudOptions });
// 页面打开后获取列表数据
onMounted(() => {
crudExpose.doRefresh();
});
</script>

View File

@@ -79,7 +79,7 @@
</fs-page>
</template>
<script lang="ts" setup>
<script lang="ts" setup name="fileList">
import {DelObj, GetList} from "./api";
import {ref, onMounted,reactive} from "vue";
import {getBaseURL} from "/@/utils/baseUrl";