sonar 3 left
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user