2025-12-01 13:20:43 +08:00
|
|
|
import { createSSRApp } from 'vue'
|
|
|
|
|
import App from './App.vue'
|
|
|
|
|
import pinia from './stores/index'
|
|
|
|
|
import uviewPlus from 'uview-plus'
|
|
|
|
|
import './static/index.scss'
|
2025-12-01 14:04:44 +08:00
|
|
|
import './static/uview-theme.scss'
|
2025-12-01 13:20:43 +08:00
|
|
|
|
|
|
|
|
export function createApp() {
|
|
|
|
|
const app = createSSRApp(App)
|
|
|
|
|
app.use(pinia)
|
|
|
|
|
app.use(uviewPlus, () => {
|
|
|
|
|
return {
|
|
|
|
|
options: {
|
|
|
|
|
config: {
|
|
|
|
|
loadFontOnce: false,
|
|
|
|
|
// 主题色配置
|
|
|
|
|
primary: '#07c160',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
app,
|
|
|
|
|
}
|
|
|
|
|
}
|