Skip to content

tryOnUnmounted ​

描述 ​

安全的 onUnmounted。

示例 ​

ts
import { tryOnUnmounted } from '@base-web-kits/base-tools-vue';

tryOnUnmounted(() => {
  console.log('unmounted');
});

来源 ​

VueUse