mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-22 16:01:13 +08:00
Merge pull request #441 from nagisa77/codex/fix-vditor-styles-not-applying-in-ssr
fix: apply global Vditor styles in SSR
This commit is contained in:
@@ -2,7 +2,8 @@ import { defineNuxtConfig } from 'nuxt/config'
|
||||
|
||||
export default defineNuxtConfig({
|
||||
ssr: true,
|
||||
css: ['~/assets/global.css'],
|
||||
// Ensure Vditor styles load before our overrides in global.css
|
||||
css: ['vditor/dist/index.css', '~/assets/global.css'],
|
||||
app: {
|
||||
head: {
|
||||
script: [
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import Vditor from 'vditor'
|
||||
import 'vditor/dist/index.css'
|
||||
import { API_BASE_URL } from '../main'
|
||||
import { getToken, authState } from './auth'
|
||||
import { searchUsers, fetchFollowings, fetchAdmins } from './user'
|
||||
|
||||
Reference in New Issue
Block a user