Swap code position of template and script

This commit is contained in:
Annie Huang committed 2023-11-20 15:08:14 +08:00
1 parent 659161a76e
commit 4c1be84942
2 files changed
+23 -23

No files matched your search

+18 -18
View File
@@ -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>
import { ref, onMounted } from 'vue'
import { useRouter } from 'vue-router'
@@ -151,3 +133,21 @@ onMounted(async () => {
initChart(option)
})
</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>
+5 -5
View File
@@ -1,3 +1,8 @@
<script setup>
import QuestMap from '../components/QuestMap.vue'
import GameHeaderPart from '../components/GameHeaderPart.vue'
</script>
<template>
<div class="h-[6vh] w-full">
<GameHeaderPart />
@@ -12,8 +17,3 @@
<QuestMap />
</div>
</template>
<script setup>
import QuestMap from '../components/QuestMap.vue'
import GameHeaderPart from '../components/GameHeaderPart.vue'
</script>