diff --git a/src/module/alertModal.js b/src/module/alertModal.js
index 02a9bcf..6c2ec58 100644
--- a/src/module/alertModal.js
+++ b/src/module/alertModal.js
@@ -132,7 +132,9 @@ export async function leaveFilter(next, addFilterId, toPath, logOut) {
// console.log("PageAdminStore.activePage", PageAdminStore.activePage);
pageAdminStore.keepPreviousPage();
- logOut ? null : next(false);
+ if(!logOut){
+ next(false);
+ };
}
};
@@ -209,7 +211,9 @@ export async function leaveConformance(next, addConformanceCreateCheckId, toPath
conformanceStore.conformanceLogTempCheckId = null;
logOut ? logOut() : next(toPath);
} else if(result.dismiss === 'backdrop') {
- logOut ? null : next(false);
+ if(!logOut){
+ next(false);
+ }
}
};
/**
@@ -403,8 +407,7 @@ export async function renameModal(rename, type, id, baseName) {
// 改名成功
if(isConfirmed) await rename(type, id, value);
- // 清空欄位
- // fileName = '';
+ // 清空欄位 fileName = '';
}
/**
* Delete File
@@ -464,7 +467,6 @@ export async function reallyDeldetInformation(files, reallyDeldetData) {
const filesStore = FilesStore();
const deleteCustomClass = { ...customClass };
const htmlText = `
The following file(s) have been deleted by other user(s):
`;
- let recordIdData = [];
deleteCustomClass.confirmButton = '!inline-block !rounded-full !text-sm !font-medium !text-center !align-middle !transition-colors !duration-300 !px-5 !py-2 !w-[100px] !h-[40px] !text-primary !bg-neutral-10 !border !border-primary';
deleteCustomClass.cancelButton = null;
@@ -481,7 +483,7 @@ export async function reallyDeldetInformation(files, reallyDeldetData) {
confirmButton.style.border = '1px solid #0099FF';
}
});
- recordIdData = await Promise.all(reallyDeldetData.map(file => filesStore.deletionRecord(file.id)));
+ await Promise.all(reallyDeldetData.map(file => filesStore.deletionRecord(file.id)));
await filesStore.fetchAllFiles();
}
diff --git a/src/module/cytoscapeMapTrace.js b/src/module/cytoscapeMapTrace.js
index 685280d..5133bc7 100644
--- a/src/module/cytoscapeMapTrace.js
+++ b/src/module/cytoscapeMapTrace.js
@@ -86,7 +86,7 @@ export default function cytoscapeMapTrace(nodes, edges, graphId) {
// creat tippy.js
let tip;
cy.on('mouseover', 'node', function(event) {
- var node = event.target
+ const node = event.target
let ref = node.popperRef()
let dummyDomEle = document.createElement('div');
let content = document.createElement('div');
@@ -97,7 +97,6 @@ export default function cytoscapeMapTrace(nodes, edges, graphId) {
content:content
});
tip.show();
- // if(node.data("label").length > 18) tip.show();
})
cy.on('mouseout', 'node', function(event) {
tip.hide();
diff --git a/src/views/MainContainer.vue b/src/views/MainContainer.vue
index 3c769d3..50f5994 100644
--- a/src/views/MainContainer.vue
+++ b/src/views/MainContainer.vue
@@ -87,7 +87,7 @@ export default {
},
created() {
// Save token in Headers.
- const token = document.cookie.replace(/(?:(?:^|.*;\s*)luciaToken\s*\=\s*([^;]*).*$)|^.*$/, "$1");
+ const token = document.cookie.replace(/(?:(?:^|.*;\s*)luciaToken\s*=\s*([^;]*).*$)|^.*$/, "$1");
this.$http.defaults.headers.common['Authorization'] = `Bearer ${token}`;
},
// 重新整理畫面以及第一次進入網頁時,beforeRouteEnter這個hook會被執行,然而beforeRouteUpdate不會被執行