代码调整优化

This commit is contained in:
meilin.huang
2021-09-08 17:55:57 +08:00
parent 00f053573e
commit 318005f459
32 changed files with 209 additions and 355 deletions

View File

@@ -120,7 +120,7 @@ export default defineComponent({
}
};
const changeRedis = (redisId: any) => {
const changeRedis = () => {
resetScanParam();
state.keys = [];
state.dbsize = 0;
@@ -201,7 +201,7 @@ export default defineComponent({
// this.valueDialog.value = {}
// }
const update = (key: string) => {};
// const update = (key: string) => {};
const del = (key: string) => {
ElMessageBox.confirm(`此操作将删除对应的key , 是否继续?`, '提示', {
@@ -217,12 +217,12 @@ export default defineComponent({
key,
id,
})
.then((res) => {
.then(() => {
ElMessage.success('删除成功!');
scan();
});
})
.catch((err) => {});
.catch(() => {});
};
const ttlConveter = (ttl: any) => {