feat: 增加应用跟项目列表,包含增删改查功能
This commit is contained in:
@@ -2,12 +2,20 @@ import { createApp } from "vue";
|
||||
import "@sy/web-vitals";
|
||||
import { IconsPlugin } from "@vtj/icons";
|
||||
import { VueQueryPlugin } from "@tanstack/vue-query";
|
||||
|
||||
import * as VtjUI from "@vtj/ui";
|
||||
import App from "./App.vue";
|
||||
import ElementPlus from "element-plus";
|
||||
import "element-plus/dist/index.css";
|
||||
import "@vtj/ui/dist/style.css";
|
||||
|
||||
createApp(App)
|
||||
const app = createApp(App);
|
||||
|
||||
// 批量注册组件
|
||||
Object.entries(VtjUI).forEach(([name, component]) => {
|
||||
console.log("name", name, component);
|
||||
app.component(name, component);
|
||||
});
|
||||
app
|
||||
.use(ElementPlus)
|
||||
.use(IconsPlugin)
|
||||
.use(VueQueryPlugin)
|
||||
|
||||
Reference in New Issue
Block a user