mirror of
https://github.com/Chanzhaoyu/chatgpt-web.git
synced 2025-10-21 19:24:29 +00:00
pref: reduce code
This commit is contained in:
11
src/main.ts
11
src/main.ts
@@ -1,19 +1,18 @@
|
||||
import 'virtual:svg-icons-register'
|
||||
import './styles/tailwind.css'
|
||||
import './styles/global.css'
|
||||
|
||||
import { createApp } from 'vue'
|
||||
import App from './App.vue'
|
||||
import './styles/global.css'
|
||||
|
||||
function injectMeta() {
|
||||
/** Tailwind's Preflight Style Override */
|
||||
function naiveStyleOverride() {
|
||||
const meta = document.createElement('meta')
|
||||
meta.name = 'naive-ui-style'
|
||||
document.head.appendChild(meta)
|
||||
}
|
||||
|
||||
/** Setup */
|
||||
function bootstrap() {
|
||||
const app = createApp(App)
|
||||
injectMeta()
|
||||
naiveStyleOverride()
|
||||
app.mount('#app')
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user