talk_appAmin/main.js

28 lines
941 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-06-05 16:57:58 +08:00
import { parseTime, resetForm, addDateRange, handleTree, selectDictLabel, selectDictLabels } from '@/utils/ruoyi'
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-06-05 16:57:58 +08:00
app.config.globalProperties.parseTime = parseTime
app.config.globalProperties.resetForm = resetForm
app.config.globalProperties.handleTree = handleTree
app.config.globalProperties.addDateRange = addDateRange
app.config.globalProperties.selectDictLabel = selectDictLabel
app.config.globalProperties.selectDictLabels = selectDictLabels
2024-05-04 20:45:49 +08:00
app.use(uviewPlus)
2024-04-23 23:01:35 +08:00
app.use(store)
2024-06-04 18:57:45 +08:00
2024-05-04 20:45:49 +08:00
// app.use(uView)
2024-04-23 23:01:35 +08:00
install(app)
return {
app
}
}