Skip to content

Commit 480ebf6

Browse files
committed
Fix warning for extra reactive component
Make it local instead
1 parent 108f97f commit 480ebf6

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

entry_guide/src/App.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<script setup lang="ts">
2-
import { ref } from 'vue';
32
43
import Tabs from './Tabs.vue';
54
import type { TabItem } from './types';
@@ -10,14 +9,14 @@ import DesignTab from './tabs/DesignTab.vue';
109
import MetoceanTab from './tabs/MetoceanTab.vue';
1110
import PerformanceTab from './tabs/PerformanceTab.vue';
1211
13-
const tabList = ref<TabItem[]>([
12+
const tabList: TabItem[] = [
1413
{ title: 'Controls', component: ControlsTab },
1514
{ title: 'Costs', component: CostsTab },
1615
{ title: 'Data', component: DataTab },
1716
{ title: 'Design', component: DesignTab },
1817
{ title: 'Metocean', component: MetoceanTab },
1918
{ title: 'Performance', component: PerformanceTab }
20-
]);
19+
];
2120
2221
</script>
2322

0 commit comments

Comments
 (0)