Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue3使用 table 多次渲染后内存不会释放 #3371

Open
afang-z opened this issue Dec 9, 2024 · 0 comments
Open

vue3使用 table 多次渲染后内存不会释放 #3371

afang-z opened this issue Dec 9, 2024 · 0 comments

Comments

@afang-z
Copy link

afang-z commented Dec 9, 2024

<script setup> import { ref, onBeforeUnmount } from 'vue' const columns = ref( [{ title: 'Name', dataIndex: 'name' }]) const data = ref([{ name: 'John' }, { name: 'Doe' }]) // 清理表格数据 onBeforeUnmount(() => { data.value = null // 同时清空响应式数据 columns.value = null }); </script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant