mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-12 05:33:48 +08:00
smart-app alpha 版本
This commit is contained in:
18
smart-app/src/main.js
Normal file
18
smart-app/src/main.js
Normal 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,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user