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

View File

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