diff --git a/src/views/graphite/index.vue b/src/views/graphite/index.vue index c11af2d..d218507 100644 --- a/src/views/graphite/index.vue +++ b/src/views/graphite/index.vue @@ -183,7 +183,7 @@ onMounted(() => { wsClient.connect(); getIngTask().then((res:any) => { if(!res.success) return; - taskId.value = res.data.id; + taskId.value = res.data?.id; }); onUnmounted(() => { subscription.unsubscribe();