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