22 lines
490 B
JavaScript
22 lines
490 B
JavaScript
import { createSSRApp } from 'vue'
|
|
import App from './App'
|
|
import store from './store' // store
|
|
import { install } from './plugins' // plugins
|
|
import './permission.js' // permission
|
|
import iconConfig from './utils/icon/icon.js'
|
|
// main.js
|
|
import uviewPlus from 'uview-plus'
|
|
|
|
export function createApp() {
|
|
const app = createSSRApp(App)
|
|
app.config.globalProperties.iconConfig = iconConfig
|
|
app.use(uviewPlus)
|
|
app.use(store)
|
|
|
|
// app.use(uView)
|
|
install(app)
|
|
return {
|
|
app
|
|
}
|
|
}
|