feat: update

This commit is contained in:
Fine 2023-06-07 07:42:28 +08:00
parent d7bc79310d
commit 0b8f40bab5
5 changed files with 10 additions and 6 deletions

View File

@ -20,11 +20,11 @@ import graphql from "@/graphql";
import type { AxiosResponse } from "axios";
import type { EBPFTaskList } from "@/types/ebpf";
import { useNetworkProfilingStore } from "@/store/modules/network-profiling";
// import { EBPFProfilingTriggerType } from "../data";
interface taskTimelineState {
loading: boolean;
taskList: EBPFTaskList[];
selectedTask: Recordable<EBPFTaskList>;
}
export const taskTimelineStore = defineStore({
@ -32,8 +32,12 @@ export const taskTimelineStore = defineStore({
state: (): taskTimelineState => ({
loading: false,
taskList: [],
selectedTask: {},
}),
actions: {
setSelectedTask(task: Recordable<EBPFTaskList>) {
this.selectedTask = task || {};
},
async getContinousTaskList(params: {
serviceId: string;
serviceInstanceId: string;

View File

@ -32,7 +32,7 @@ limitations under the License. -->
defineProps({
config: {
type: Object as PropType<any>,
default: () => ({ graph: {} }),
default: () => ({}),
},
});
</script>

View File

@ -34,7 +34,7 @@ limitations under the License. -->
defineProps({
config: {
type: Object as PropType<any>,
default: () => ({ graph: {} }),
default: () => ({}),
},
});
const networkProfilingStore = useNetworkProfilingStore();

View File

@ -27,7 +27,7 @@ limitations under the License. -->
defineProps({
config: {
type: Object as PropType<any>,
default: () => ({ graph: {} }),
default: () => ({}),
},
});
</script>

View File

@ -18,11 +18,11 @@ limitations under the License. -->
<script lang="ts" setup>
import type { PropType } from "vue";
/* global defineProps */
/*global defineProps */
defineProps({
config: {
type: Object as PropType<any>,
default: () => ({ graph: {} }),
default: () => ({}),
},
});
</script>