Skip to content

Commit

Permalink
fix: vite.config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nailiable committed Dec 6, 2024
1 parent 0ae64f2 commit 21d3237
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 4 additions & 2 deletions frontend/pages/artist/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
import { ArtistDetailResponse } from '#/music.protocol'
import { useMusicController } from '~/apis/music'
defineOptions({ name: 'ArtistDetail' })
const route = useRoute()
const { id } = route.params as { id: string }
Expand All @@ -19,6 +17,10 @@ const dataNumFields = computed(() => [
])
</script>

<script lang="tsx">
export default { name: 'ArtistDetail' }
</script>

<template>
<div>
<div pt-4 flex="~ gap-4 md:gap-7">
Expand Down
3 changes: 1 addition & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import path from 'node:path'
import { setup } from '@css-render/vue3-ssr'
import VueI18n from '@intlify/unplugin-vue-i18n/vite'
import Shiki from '@shikijs/markdown-it'
import Vue from '@vitejs/plugin-vue'
Expand Down Expand Up @@ -197,8 +198,6 @@ export default defineConfig({
generateSitemap({ outDir: './dist/frontend' })
},
async onBeforePageRender(_, __, appCtx) {
// eslint-disable-next-line ts/ban-ts-comment
// @ts-expect-error
const { collect } = setup(appCtx.app)
;(appCtx as any).__collectStyle = collect
return undefined
Expand Down

0 comments on commit 21d3237

Please sign in to comment.