2025-08-19 17:07:46 +08:00
|
|
|
import { createSSRApp } from 'vue'
|
|
|
|
|
import App from './App'
|
|
|
|
|
import store from './store' // store
|
|
|
|
|
import { install } from './plugins' // plugins
|
|
|
|
|
import './permission' // permission
|
|
|
|
|
import { useDict } from '@/utils/dict'
|
2025-08-28 17:29:25 +08:00
|
|
|
// 全局注册 dict-tag 组件
|
|
|
|
|
// import DictTag from '@/components/dict-tag/dict-tag.vue';
|
2025-08-19 17:07:46 +08:00
|
|
|
export function createApp() {
|
|
|
|
|
const app = createSSRApp(App)
|
|
|
|
|
app.use(store)
|
2025-08-28 17:29:25 +08:00
|
|
|
// app.component('dict-tag', DictTag);
|
2025-08-19 17:07:46 +08:00
|
|
|
app.config.globalProperties.useDict = useDict
|
|
|
|
|
install(app)
|
|
|
|
|
return {
|
|
|
|
|
app
|
|
|
|
|
}
|
|
|
|
|
}
|