From 12075d0fa73d963ff5d6dbc4727fb95fb6084961 Mon Sep 17 00:00:00 2001 From: surprise <15810472099@163.com> Date: 星期五, 01 三月 2024 09:32:40 +0800 Subject: [PATCH] 代码更新 --- src/main.ts | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main.ts b/src/main.ts index a6fdf86..0e9633a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -3,25 +3,30 @@ import router from "./router"; import store from "./store"; import ElementPlus from "element-plus"; +import locale from "element-plus/es/locale/lang/zh-cn"; import "element-plus/dist/index.css"; -import "default-passive-events"; +// import "default-passive-events"; import * as ElementPlusIconsVue from "@element-plus/icons-vue"; //base css鏍峰紡 import "./assets/css/global.css"; //鑷�傚簲 import "amfe-flexible/index"; +// import zhlocale from "element-plus/lib/locale/lang/zh-cn"; + //绮掑瓙鐗规晥 import VueParticles from "vue-particles"; import Drag from "./utils/drag"; - +import resizable from "./utils//resizable"; const app = createApp(App); for (const [key, component] of Object.entries(ElementPlusIconsVue)) { app.component(key, component); } + app - .use(ElementPlus) + .use(ElementPlus, { locale }) .use(store) .use(router) .use(VueParticles) .use(Drag) + .use(resizable) .mount("#app"); -- Gitblit v1.9.3