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.
27 lines
584 B
27 lines
584 B
<script setup lang="ts"> |
|
import { iconMap, message, useApi, useI18n } from '#imports' |
|
|
|
const { t } = useI18n() |
|
|
|
const { api } = useApi() |
|
|
|
async function deleteCache() { |
|
try { |
|
await api.utils.cacheDelete() |
|
// Deleted Cache Successfully |
|
message.info(t('msg.info.deletedCache')) |
|
} catch (e: any) { |
|
message.error(e.message) |
|
} |
|
} |
|
</script> |
|
|
|
<template> |
|
<a-tooltip placement="bottom"> |
|
<template #title> |
|
<span> Delete Cache </span> |
|
</template> |
|
|
|
<component :is="iconMap.delete" class="cursor-pointer" @click="deleteCache" /> |
|
</a-tooltip> |
|
</template>
|
|
|