starmusic-mobile
1import { createSSRApp } from 'vue'
2import App from './App.vue'
3import themeMixin from './common/theme-mixin.js'
4
5export function createApp() {
6 const app = createSSRApp(App)
7 // 全局注入主题能力:页面/组件通过 themeStyle 把当前主题的 CSS 变量绑定到根元素
8 app.mixin(themeMixin)
9 return {
10 app,
11 }
12}