Skip to content

Commit

Permalink
fix(build): fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Red-Asuka authored and ysfscream committed Oct 30, 2024
1 parent 10177aa commit 6d0fdf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions apps/desktop/src/renderer/src/pages/connections/index.vue
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
<script lang="ts" setup>
import useMockData from '@/composables/useMockData'
import { computed } from 'vue'
import { useRoute } from 'vue-router'
const { connections } = useMockData()
const route = useRoute()
const activeId = computed(() => route.params.id)
</script>

<template>
<split-view class="connections-container" min-size="180px" max-size="400px">
<template #panel-1>
<div class="connections-list">
<connection-list-view :data="connections" :active-id="activeId" />
<connection-list-view :data="connections" />
</div>
</template>
<template #panel-2>
Expand Down
6 changes: 1 addition & 5 deletions apps/web/src/pages/connections/index.vue
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
<script lang="ts" setup>
import useMockData from '@/composables/useMockData'
import { computed } from 'vue'
import { useRoute } from 'vue-router'
const { connections } = useMockData()
const route = useRoute()
const activeId = computed(() => route.params.id)
</script>

<template>
<split-view class="connections-container" min-size="180px" max-size="400px">
<template #panel-1>
<div class="connections-list">
<connection-list-view :data="connections" :active-id="activeId" />
<connection-list-view :data="connections" />
</div>
</template>
<template #panel-2>
Expand Down

0 comments on commit 6d0fdf4

Please sign in to comment.