mirror of
https://github.com/1024-lab/smart-admin.git
synced 2026-06-02 03:55:59 +00:00
【smart-app】 更新beta版本
This commit is contained in:
22
smart-app/src/main.js
Normal file
22
smart-app/src/main.js
Normal file
@@ -0,0 +1,22 @@
|
||||
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,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user