mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
Swap code position of template and script
This commit is contained in:
1 parent
659161a76e
commit
4c1be84942
2 files changed
+23
-23
No files matched your search
@@ -1,21 +1,3 @@
|
|||||||
<template>
|
|
||||||
<div class="relative bg-black w-full h-full flex">
|
|
||||||
<img
|
|
||||||
src="../img/catelogbg.svg"
|
|
||||||
alt="bg"
|
|
||||||
class="p-2 stroke-2 scale-y-120 justify-center items-center"
|
|
||||||
/>
|
|
||||||
<h1
|
|
||||||
class="text-text-primary text-xl p-2.5 absolute w-fit z-2 font-mono font-bold flex flax-wrap"
|
|
||||||
>
|
|
||||||
Get through your linux journey!
|
|
||||||
</h1>
|
|
||||||
<div class="flex flex-wrap absolute w-full h-full z-1">
|
|
||||||
<div ref="chartContainer" class="w-full h-full flex flex-wrap"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, onMounted } from 'vue'
|
import { ref, onMounted } from 'vue'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
@@ -151,3 +133,21 @@ onMounted(async () => {
|
|||||||
initChart(option)
|
initChart(option)
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div class="relative bg-black w-full h-full flex">
|
||||||
|
<img
|
||||||
|
src="../img/catelogbg.svg"
|
||||||
|
alt="bg"
|
||||||
|
class="p-2 stroke-2 scale-y-120 justify-center items-center"
|
||||||
|
/>
|
||||||
|
<h1
|
||||||
|
class="text-text-primary text-xl p-2.5 absolute w-fit z-2 font-mono font-bold flex flax-wrap"
|
||||||
|
>
|
||||||
|
Get through your linux journey!
|
||||||
|
</h1>
|
||||||
|
<div class="flex flex-wrap absolute w-full h-full z-1">
|
||||||
|
<div ref="chartContainer" class="w-full h-full flex flex-wrap"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
@@ -1,3 +1,8 @@
|
|||||||
|
<script setup>
|
||||||
|
import QuestMap from '../components/QuestMap.vue'
|
||||||
|
import GameHeaderPart from '../components/GameHeaderPart.vue'
|
||||||
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="h-[6vh] w-full">
|
<div class="h-[6vh] w-full">
|
||||||
<GameHeaderPart />
|
<GameHeaderPart />
|
||||||
@@ -12,8 +17,3 @@
|
|||||||
<QuestMap />
|
<QuestMap />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
|
||||||
import QuestMap from '../components/QuestMap.vue'
|
|
||||||
import GameHeaderPart from '../components/GameHeaderPart.vue'
|
|
||||||
</script>
|
|
||||||
Reference in new issue
Block a user