Admin.UI/src/views/admin/cache.vue
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<!--
* @Author: OBKoro1
* @Date: 2021-08-12 10:05:36
* @LastEditors: OBKoro1
* @LastEditTime: 2022-08-04 17:06:47
* @FilePath: \Admin.UI\src\views\admin\cache.vue
* @Description:
*
* Copyright (c) 2022 by 用户/公司名, All Rights Reserved.
-->
<template>
<section style="padding:10px;">
<!--列表-->
<el-table
v-loading="listLoading"
:data="caches"
highlight-current-row
style="width: 100%;height:100%;"
>
<template #empty>
<el-empty :image-size="100" />
</template>
<el-table-column type="index" width="80" label="#" />
<el-table-column prop="description" label="缓存名" width />
<el-table-column prop="name" label="键名" width />
<el-table-column prop="value" label="键值" width />
<el-table-column v-if="checkPermission(['api:admin:cache:clear'])" label="操作" width="180">
<template v-if="checkPermission(['api:admin:cache:clear'])" #default="{ $index, row }">
<my-confirm-button
type="delete"
:loading="row._loading"
:icon="'el-icon-delete'"
style="margin-left:0px;"
@click="onClearCache($index, row)"
>
<template #content>
<p>确定要清除该缓存吗?</p>
</template>
清除
</my-confirm-button>
</template>
</el-table-column>
</el-table>
</section>
</template>
<script>
import cacheApi from '@/api/admin/cache'
import MyConfirmButton from '@/components/my-confirm-button'
export default {
name: 'Cache',
components: {
MyConfirmButton
},
data() {
return {
filter: {
name: ''
},
caches: [],
后面还有 41 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
