refactor: Discover Router Save done.

This commit is contained in:
chiayin
2024-03-19 16:29:29 +08:00
parent 6663b48159
commit 483f6a026d
8 changed files with 9 additions and 68 deletions

View File

@@ -370,18 +370,18 @@ export default {
switch (routeParams.type) {
case 'log':
if(!isCheckPage) {
this.logId = routeParams.fileId;
this.baseLogId = routeParams.fileId;
this.logId = await routeParams.fileId;
this.baseLogId = await routeParams.fileId;
} else {
this.logId = file.parent.id;
this.baseLogId = file.parent.id;
this.logId = await file.parent.id;
this.baseLogId = await file.parent.id;
}
break;
case 'filter':
if(!isCheckPage) {
this.createFilterId = routeParams.fileId;
this.createFilterId = await routeParams.fileId;
} else {
this.createFilterId = file.parent.id;
this.createFilterId = await file.parent.id;
}
// 取得 logID 和上次儲存的 Funnel
await this.allMapDataStore.fetchFunnel(this.createFilterId);

View File

@@ -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) {