sonar 41 left

This commit is contained in:
Cindy Chang committed 2024-08-02 11:15:15 +08:00
1 parent a33eaa3a41
commit 86cfb409c3
7 files changed
+33 -21

No files matched your search

+1 -1
View File
@@ -912,7 +912,7 @@ export default {
if (isCheckPage) {
const conformanceStore = ConformanceStore();
// Save token in Headers.
const token = document.cookie.replace(/(?:(?:^|.*;\s*)luciaToken\s*\=\s*([^;]*).*$)|^.*$/, "$1");
const token = document.cookie.replace(/(?:(?:^|.*;\s*)luciaToken\s*=\s*([^;]*).*$)|^.*$/, "$1");
axios.defaults.headers.common['Authorization'] = `Bearer ${token}`;
switch (to.params.type) {