sonar 3 left

This commit is contained in:
Cindy Chang
2024-08-09 13:49:19 +08:00
parent 39096126c5
commit 3fc9bb9659
2 changed files with 6 additions and 1 deletions

View File

@@ -287,6 +287,7 @@ export default defineStore('filesStore', {
}
},
/**
* It seems that this function is unused
* Remove a Deletion Record真刪除被 Admin 或被其他帳號刪除的檔案
* @param {number} id 檔案 ID
*/
@@ -296,6 +297,7 @@ export default defineStore('filesStore', {
loading.isLoading = true;
api = `/api/deletion/${id}`;
try {
await axios.delete(api);
} catch(error) {
apiError(error, 'Failed to Remove a Deletion Record.')
} finally {

View File

@@ -357,7 +357,9 @@
},
reallyDeldetData: {
handler(newValue, oldValue) {
if(newValue.length !== 0 && oldValue.length === 0) this.showReallyDeldet();
if(newValue.length !== 0 && oldValue.length === 0){
this.showReallyDeldet();
}
},
immediate: true
}
@@ -497,6 +499,7 @@
srt = '';
},
/**
* It seems that this function is unused
* 顯示被 Admin 或被其他帳號刪除的檔案
*/
showReallyDeldet(){