mirror of
https://github.com/OpenSquawk/OpenSquawk
synced 2026-08-04 16:22:48 +08:00
fix(flightlab): use ~~ alias for shared imports instead of relative paths
Vite cannot resolve ~/../../shared - use ~~/shared which maps to project root. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -122,7 +122,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { takeoffEddf } from '~/../../shared/data/flightlab/takeoff-eddf'
|
||||
import { takeoffEddf } from '~~/shared/data/flightlab/takeoff-eddf'
|
||||
|
||||
definePageMeta({
|
||||
layout: false,
|
||||
|
||||
@@ -165,11 +165,11 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, computed, watch, onMounted, onBeforeUnmount } from 'vue'
|
||||
import { takeoffEddf } from '~/../../shared/data/flightlab/takeoff-eddf'
|
||||
import { useFlightLabEngine } from '~/../../shared/composables/flightlab/useFlightLabEngine'
|
||||
import { useFlightLabAudio } from '~/../../shared/composables/flightlab/useFlightLabAudio'
|
||||
import { useFlightLabSync } from '~/../../shared/composables/flightlab/useFlightLabSync'
|
||||
import type { FlightLabButton } from '~/../../shared/data/flightlab/types'
|
||||
import { takeoffEddf } from '~~/shared/data/flightlab/takeoff-eddf'
|
||||
import { useFlightLabEngine } from '~~/shared/composables/flightlab/useFlightLabEngine'
|
||||
import { useFlightLabAudio } from '~~/shared/composables/flightlab/useFlightLabAudio'
|
||||
import { useFlightLabSync } from '~~/shared/composables/flightlab/useFlightLabSync'
|
||||
import type { FlightLabButton } from '~~/shared/data/flightlab/types'
|
||||
|
||||
definePageMeta({ layout: false })
|
||||
useHead({ title: 'FlightLab - Dein erster Start' })
|
||||
|
||||
@@ -249,9 +249,9 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, computed, onMounted, onBeforeUnmount } from 'vue'
|
||||
import { takeoffEddf } from '~/../../shared/data/flightlab/takeoff-eddf'
|
||||
import { useFlightLabEngine } from '~/../../shared/composables/flightlab/useFlightLabEngine'
|
||||
import { useFlightLabSync } from '~/../../shared/composables/flightlab/useFlightLabSync'
|
||||
import { takeoffEddf } from '~~/shared/data/flightlab/takeoff-eddf'
|
||||
import { useFlightLabEngine } from '~~/shared/composables/flightlab/useFlightLabEngine'
|
||||
import { useFlightLabSync } from '~~/shared/composables/flightlab/useFlightLabSync'
|
||||
|
||||
definePageMeta({ layout: false })
|
||||
useHead({ title: 'FlightLab - Instructor Panel' })
|
||||
|
||||
Reference in New Issue
Block a user