样式修改
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { createApp } from 'vue'
|
||||
import { createPinia } from 'pinia'
|
||||
import ElementPlus from 'element-plus'
|
||||
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
||||
import 'element-plus/dist/index.css'
|
||||
|
||||
import './assets/css/common.scss'
|
||||
@@ -12,6 +11,82 @@ import { AES_SECRET_KEY } from './config'
|
||||
// @ts-ignore
|
||||
import { initAesEncrypt } from 'shared/utils'
|
||||
|
||||
// 导入需要的 Lucide 图标(用于动态组件)
|
||||
import {
|
||||
MessageCircle,
|
||||
LayoutGrid,
|
||||
Workflow,
|
||||
FileText,
|
||||
Headphones,
|
||||
BarChart3,
|
||||
Users,
|
||||
User,
|
||||
Settings,
|
||||
Home,
|
||||
Ticket,
|
||||
Bot,
|
||||
ScrollText,
|
||||
Monitor,
|
||||
Server,
|
||||
ChevronDown,
|
||||
ChevronRight,
|
||||
ChevronLeft,
|
||||
PanelLeftClose,
|
||||
PanelLeftOpen,
|
||||
RefreshCw,
|
||||
Loader,
|
||||
LogOut,
|
||||
Plus,
|
||||
Trash2,
|
||||
Clock,
|
||||
Search,
|
||||
AlertTriangle,
|
||||
Wrench,
|
||||
Paperclip,
|
||||
Send,
|
||||
History,
|
||||
X,
|
||||
Menu
|
||||
} from 'lucide-vue-next'
|
||||
|
||||
// Lucide 图标映射(用于全局注册)
|
||||
const lucideIcons = {
|
||||
MessageCircle,
|
||||
LayoutGrid,
|
||||
Workflow,
|
||||
FileText,
|
||||
Headphones,
|
||||
BarChart3,
|
||||
Users,
|
||||
User,
|
||||
Settings,
|
||||
Home,
|
||||
Ticket,
|
||||
Bot,
|
||||
ScrollText,
|
||||
Monitor,
|
||||
Server,
|
||||
ChevronDown,
|
||||
ChevronRight,
|
||||
ChevronLeft,
|
||||
PanelLeftClose,
|
||||
PanelLeftOpen,
|
||||
RefreshCw,
|
||||
Loader,
|
||||
LogOut,
|
||||
Plus,
|
||||
Trash2,
|
||||
Clock,
|
||||
Search,
|
||||
AlertTriangle,
|
||||
Wrench,
|
||||
Paperclip,
|
||||
Send,
|
||||
History,
|
||||
X,
|
||||
Menu
|
||||
}
|
||||
|
||||
// 异步初始化应用
|
||||
async function initApp() {
|
||||
// 1. 初始化 AES 加密工具
|
||||
@@ -32,9 +107,9 @@ async function initApp() {
|
||||
// 4. 注册 Element Plus
|
||||
app.use(ElementPlus)
|
||||
|
||||
// 5. 注册所有 Element Plus 图标
|
||||
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
||||
app.component(key, component)
|
||||
// 5. 注册 Lucide 图标(用于动态组件)
|
||||
for (const [name, component] of Object.entries(lucideIcons)) {
|
||||
app.component(name, component)
|
||||
}
|
||||
|
||||
// 6. 注册路由
|
||||
|
||||
Reference in New Issue
Block a user