refactor: Discover Router Save done.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -210,7 +210,6 @@
|
||||
</ContextMenu>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { storeToRefs } from 'pinia';
|
||||
import LoginStore from '@/stores/login.js';
|
||||
@@ -226,8 +225,6 @@
|
||||
import IconGrid from '@/components/icons/IconGrid.vue';
|
||||
import { renameModal, deleteFileModal } from '@/module/alertModal.js';
|
||||
|
||||
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -564,7 +561,6 @@
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
:deep(thead) {
|
||||
@apply sticky top-0 bg-neutral-10 after:border-b after:border-neutral-500 after:w-full after:left-0 after:bottom-0 after:absolute table table-fixed w-full
|
||||
|
||||
Reference in New Issue
Block a user