2023-08-12 15:44:27 +00:00
|
|
|
import App from './App.vue'
|
|
|
|
|
import plugins from './plugins'
|
2023-12-12 05:49:31 +00:00
|
|
|
import store from './store'
|
2023-08-12 15:44:27 +00:00
|
|
|
import uviewPlus from 'uview-plus'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import { createSSRApp } from 'vue'
|
2023-12-12 05:14:46 +00:00
|
|
|
|
|
|
|
|
import { useDict } from '@/utils/dict'
|
|
|
|
|
import { parseTime, resetForm, addDateRange, handleTree, selectDictLabel, selectDictLabels } from '@/utils/ruoyi'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-08-12 15:44:27 +00:00
|
|
|
export function createApp() {
|
|
|
|
|
const app = createSSRApp(App)
|
2023-12-12 06:10:03 +00:00
|
|
|
app.use(store)
|
2023-08-12 15:44:27 +00:00
|
|
|
app.use(uviewPlus)
|
|
|
|
|
app.use(plugins)
|
2023-12-12 06:10:03 +00:00
|
|
|
|
2023-12-12 05:14:46 +00:00
|
|
|
|
|
|
|
|
// 全局方法挂载
|
|
|
|
|
app.config.globalProperties.useDict = useDict
|
|
|
|
|
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
|
2023-12-12 05:49:31 +00:00
|
|
|
|
2023-08-12 15:44:27 +00:00
|
|
|
return {
|
|
|
|
|
app
|
|
|
|
|
}
|
|
|
|
|
}
|