mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
471 B
23 lines
471 B
2 years ago
|
<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>
|
||
|
<template #title>
|
||
|
<span> Delete Cache </span>
|
||
|
</template>
|
||
|
<mdi-delete class="cursor-pointer mx-3" @click="deleteCache" />
|
||
|
</a-tooltip>
|
||
|
</template>
|