mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
fix: error handling for quest title
This commit is contained in:
1 parent
34f5d897d0
commit
e644920593
1 file changed
+6
-2
@@ -18,8 +18,12 @@ api
|
||||
|
||||
<template>
|
||||
<div class="overflow-auto h-full w-full max-h-full">
|
||||
<h1 id="topic" class="text-red-500" v-if="questErr">Failed to get quest infomation</h1>
|
||||
<h1 id="topic" class="text-text" v-else>{{ questData.title }}</h1>
|
||||
<h1 id="topic" class="text-red-500" v-if="questErr">
|
||||
Failed to get quest infomation
|
||||
</h1>
|
||||
<h1 id="topic" class="text-text" v-else-if="questData">
|
||||
{{ questData.title }}
|
||||
</h1>
|
||||
<hr class="border-text-line border-2 my-2" />
|
||||
<div>
|
||||
<p class="text-red-500" v-if="questErr">{{ questErr.message }}</p>
|
||||
|
||||
Reference in new issue
Block a user