From d405590d01338125d0584d4c14b4486e8cae5f4c Mon Sep 17 00:00:00 2001 From: ZiuChen <457353192@qq.com> Date: Sun, 14 Aug 2022 18:16:13 +0800 Subject: [PATCH] feat: update --- public/preload.js | 2 -- src/cpns/FileList.vue | 8 ++++++-- src/views/Main.vue | 43 ++++++++++++++++++++++++++++++++----------- 3 files changed, 38 insertions(+), 15 deletions(-) diff --git a/public/preload.js b/public/preload.js index 7c3f89a..e664ff3 100644 --- a/public/preload.js +++ b/public/preload.js @@ -56,7 +56,6 @@ class DB { } updateDataBaseLocal(dataBase) { // 更新文件数据 - console.log('updateDataBaseLocal') fs.writeFileSync(this.path, JSON.stringify(dataBase || this.dataBase), (err) => { if (err) { utools.showNotification('写入剪切板出错' + err) @@ -86,7 +85,6 @@ class DB { } updateItemViaId(id) { for (const item of this.dataBase.data) { - console.log(item.id, id) if (item.id === id) { item.updateTime = new Date().getTime() this.sortDataBaseViaTime() diff --git a/src/cpns/FileList.vue b/src/cpns/FileList.vue index db1c2f5..89e3475 100644 --- a/src/cpns/FileList.vue +++ b/src/cpns/FileList.vue @@ -2,8 +2,6 @@