chore: 整体优化

This commit is contained in:
wangxuefeng
2025-02-19 21:15:15 +08:00
parent 52a32bb31e
commit 19da7ce0dd
23 changed files with 22375 additions and 176 deletions

View File

@@ -19,9 +19,9 @@ import { ElConfigProvider, ElMessage } from 'element-plus';
import {
XMask,
useMask,
// Bell,
// Lock,
// SwitchButton,
Bell,
Lock,
SwitchButton,
type ActionBarItems,
type ActionProps
} from '@vtj/web';
@@ -30,19 +30,19 @@ import _logo from './assets/logo.svg';
const { disabled, title, menus, logo, themeSwitchable, pure } = useMask();
const actions: ActionBarItems = [
// {
// name: 'message',
// icon: Bell,
// badge: 1
// }
// {
// name: 'lock',
// icon: Lock
// },
// {
// name: 'logout',
// icon: SwitchButton
// }
{
name: 'message',
icon: Bell,
badge: 1
},
{
name: 'lock',
icon: Lock
},
{
name: 'logout',
icon: SwitchButton
}
];
const onActionClick = (action: ActionProps) => {

View File

@@ -7,7 +7,8 @@ import {
notify,
loading,
createAdapter,
createServiceRequest
createServiceRequest,
IconsPlugin
} from '@vtj/web';
import { createApp } from 'vue';
import router from './router';
@@ -18,9 +19,7 @@ import './style/index.scss';
const app = createApp(App);
const adapter = createAdapter({ loading, notify });
const service = new LocalService(createServiceRequest(notify));
// const modules = createModules();
// console.log('modules', modules);
console.log('service', service);
const { provider, onReady } = createProvider({
nodeEnv: process.env.NODE_ENV as NodeEnv,
modules: createModules(),
@@ -40,7 +39,8 @@ const { provider, onReady } = createProvider({
onReady(async () => {
app.use(router);
app.use(provider);
app.mount('#low-code-designer');
app.use(IconsPlugin);
app.mount('#app');
});
if (process.env.NODE_ENV === 'production') {

View File

@@ -1,7 +1,7 @@
import { createRouter, createWebHistory } from 'vue-router';
import { createRouter, createWebHashHistory } from 'vue-router';
const router = createRouter({
history: createWebHistory(),
history: createWebHashHistory(),
routes: [
{
path: '/unauthorized',