smart-app alpha 版本

This commit is contained in:
zhuoda
2024-03-10 22:26:32 +08:00
parent d64b769d40
commit 728ddb9a7e
295 changed files with 20261 additions and 1 deletions

18
smart-app/src/main.js Normal file
View File

@@ -0,0 +1,18 @@
import { createSSRApp } from 'vue';
import App from './App.vue';
import { store } from './store/index';
// 枚举管理
import smartEnumPlugin from '/@/plugins/smart-enums-plugin';
import constantsInfo from '/@/constants/index';
import lodash from 'lodash';
export function createApp() {
const app = createSSRApp(App);
app.use(store);
app.use(smartEnumPlugin, constantsInfo);
app.config.globalProperties.$lodash = lodash;
return {
app,
store,
};
}