mirror of https://github.com/nocodb/nocodb
22 lines
485 B
22 lines
485 B
<script setup lang="ts"> |
|
import { message } from 'ant-design-vue' |
|
const { api } = useApi() |
|
|
|
async function deleteCache() { |
|
try { |
|
await api.utils.cacheDelete() |
|
message.info('Deleted Cache Successfully') |
|
} catch (e: any) { |
|
message.error(e.message) |
|
} |
|
} |
|
</script> |
|
|
|
<template> |
|
<a-tooltip placement="bottom"> |
|
<template #title> |
|
<span> Delete Cache </span> |
|
</template> |
|
<mdi-delete class="cursor-pointer" @click="deleteCache" /> |
|
</a-tooltip> |
|
</template>
|
|
|