mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-24 23:16:52 +00:00
Webpack优化动态主题加载
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { useGlobal } from '@/lib/global'
|
||||
import React from 'react'
|
||||
import { Draggable } from './Draggable'
|
||||
import { ALL_THEME } from '@/lib/theme'
|
||||
import { ALL_THEME } from '@/themes/theme'
|
||||
import { useRouter } from 'next/router'
|
||||
/**
|
||||
*
|
||||
@@ -17,7 +17,6 @@ const ThemeSwitch = () => {
|
||||
const newTheme = e.target.value
|
||||
const query = router.query
|
||||
query.theme = newTheme
|
||||
console.log('切换主题', newTheme)
|
||||
router.push({ pathname: router.pathname, query })
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user