talk_appAmin/main.js

44 lines
1.0 KiB
JavaScript
Raw Normal View History

2024-06-15 11:25:51 +08:00
import {
createSSRApp
} from 'vue'
2024-04-23 23:01:35 +08:00
import App from './App'
import store from './store' // store
2024-06-15 11:25:51 +08:00
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-06-15 11:25:51 +08:00
import {
getDictLabelByValue
} from '@/utils/dict'
2024-06-05 19:52:43 +08:00
2024-05-04 20:45:49 +08:00
// main.js
import uviewPlus from 'uview-plus'
2024-06-15 11:25:51 +08:00
import {
parseTime,
resetForm,
addDateRange,
handleTree,
selectDictLabel,
selectDictLabels
} from '@/utils/ruoyi'
2024-04-23 23:01:35 +08:00
export function createApp() {
2024-06-15 11:25:51 +08:00
const app = createSSRApp(App)
app.config.globalProperties.iconConfig = iconConfig
app.config.globalProperties.getDictLabelByValue = getDictLabelByValue
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
app.use(uviewPlus)
app.use(store)
2024-06-04 18:57:45 +08:00
2024-06-15 11:25:51 +08:00
// app.use(uView)
install(app)
return {
app
}
}