mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-17 07:26:46 +00:00
Webpack优化动态主题加载
This commit is contained in:
@@ -2,7 +2,7 @@ import BLOG from '@/blog.config'
|
||||
import { useEffect, useState } from 'react'
|
||||
import Select from './Select'
|
||||
import { useGlobal } from '@/lib/global'
|
||||
import { ALL_THEME } from '@/lib/theme'
|
||||
import { ALL_THEME } from '@/themes/theme'
|
||||
import { useRouter } from 'next/router'
|
||||
|
||||
/**
|
||||
@@ -32,7 +32,7 @@ const DebugPanel = () => {
|
||||
}
|
||||
|
||||
function handleUpdateDebugTheme(newTheme) {
|
||||
console.log('触发切换主题', newTheme)
|
||||
console.log('切换主题', newTheme)
|
||||
const query = { ...router.query, theme: newTheme }
|
||||
router.push({ pathname: router.pathname, query })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user