mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
fix: remove unnecessary operator and imports
This commit is contained in:
1 parent
6a097c02ed
commit
5e8d3f275d
3 files changed
+2
-6
No files matched your search
@@ -5,7 +5,6 @@ import { useToast } from 'vue-toastification'
|
||||
import { ref, defineProps, onMounted } from 'vue'
|
||||
import MarkdownText from './MarkdownText.vue'
|
||||
import { trpc } from '../utils/trpc'
|
||||
import { SUPPORTED_LOCALES } from '../../../packages/constants'
|
||||
|
||||
const { t, locale } = useI18n()
|
||||
|
||||
@@ -91,7 +90,7 @@ onMounted(async () => {
|
||||
target="_blank"
|
||||
@click="handleQuests(questId)"
|
||||
:style="{ backgroundColor: questColor, color: questTextColor }"
|
||||
class="inline-flex justify-center rounded-lg text-base font-black py-3 mt-5 w-full text-lg"
|
||||
class="inline-flex justify-center rounded-lg text-base font-black py-3 mt-5 w-full"
|
||||
>
|
||||
{{ t('quest.start') }}
|
||||
</a>
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { ref, onMounted, watch, computed } from 'vue'
|
||||
import { useToast } from 'vue-toastification'
|
||||
import { SUPPORTED_LOCALES } from '../../../packages/constants'
|
||||
import { DAG } from '../../../packages/utils'
|
||||
import { trpc } from '../utils/trpc'
|
||||
import useUserProfile from '../store/userProfile'
|
||||
@@ -121,8 +120,7 @@ onMounted(async () => {
|
||||
watch(() => store.progress, computeGraphData, { deep: true })
|
||||
watch(locale, () => {
|
||||
opened.value = null
|
||||
// eslint-disable-next-line no-void
|
||||
void computeGraphData()
|
||||
computeGraphData()
|
||||
})
|
||||
|
||||
const curvedPath = computed(() => {
|
||||
|
||||
@@ -3,7 +3,6 @@ import { useI18n } from 'vue-i18n'
|
||||
import { useToast } from 'vue-toastification'
|
||||
import { computed } from 'vue'
|
||||
import { useSession } from '../../store/session'
|
||||
import { SUPPORTED_LOCALES } from '../../../../packages/constants'
|
||||
|
||||
const { t, locale } = useI18n()
|
||||
|
||||
|
||||
Reference in new issue
Block a user