talk_appAmin/main.js

21 lines
489 B
JavaScript
Raw Normal View History

2024-04-23 23:01:35 +08:00
import { createSSRApp } from 'vue'
import App from './App'
import store from './store' // store
import { install } from './plugins' // plugins
2024-05-24 23:20:46 +08:00
import './permission.js' // permission
2024-06-01 12:23:29 +08:00
import iconConfig from './utils/icon/icon.js'
2024-05-04 20:45:49 +08:00
// main.js
import uviewPlus from 'uview-plus'
2024-04-23 23:01:35 +08:00
export function createApp() {
const app = createSSRApp(App)
2024-06-01 12:23:29 +08:00
app.config.globalProperties.iconConfig = iconConfig
2024-05-04 20:45:49 +08:00
app.use(uviewPlus)
2024-04-23 23:01:35 +08:00
app.use(store)
2024-05-04 20:45:49 +08:00
// app.use(uView)
2024-04-23 23:01:35 +08:00
install(app)
return {
app
}
}