first commit

This commit is contained in:
zzc
2026-01-09 11:24:40 +08:00
commit f34899eb81
73 changed files with 5431 additions and 0 deletions

31
main.js Normal file
View File

@@ -0,0 +1,31 @@
import App from './App'
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import { createPinia } from 'pinia'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
...App
})
const pinia = createPinia()
app.use(pinia)
app.$mount()
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
import { createPinia } from 'pinia'
export function createApp() {
const app = createSSRApp(App)
const pinia = createPinia()
app.use(pinia) // ✅ 这句是关键
return {
app
}
}
// #endif