refactor: Discover Router Save done.
This commit is contained in:
@@ -613,9 +613,9 @@ export default {
|
||||
let id;
|
||||
|
||||
if(!isCheckPage) {
|
||||
id = routeParams.fileId;
|
||||
id = await routeParams.fileId;
|
||||
} else {
|
||||
id = file.parent.id;
|
||||
id = await file.parent.id;
|
||||
}
|
||||
|
||||
// 取得 Performance Data
|
||||
@@ -648,7 +648,6 @@ export default {
|
||||
const conformanceStore = ConformanceStore();
|
||||
// Save token in Headers.
|
||||
const token = document.cookie.replace(/(?:(?:^|.*;\s*)luciaToken\s*\=\s*([^;]*).*$)|^.*$/, "$1");
|
||||
let data;
|
||||
|
||||
axios.defaults.headers.common['Authorization'] = `Bearer ${token}`;
|
||||
switch (to.params.type) {
|
||||
|
||||
Reference in New Issue
Block a user