mirror of
https://github.com/1024-lab/smart-admin.git
synced 2025-09-06 04:37:36 +00:00
23 lines
525 B
JavaScript
23 lines
525 B
JavaScript
import { createSSRApp } from 'vue';
|
|
import App from './App.vue';
|
|
import { store } from './store/index';
|
|
|
|
/*每个页面公共css */
|
|
import './theme/index.scss';
|
|
|
|
// 枚举管理
|
|
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,
|
|
};
|
|
}
|