Commit 2ba07d78 by zhangxingmin

push

parent ab6da24e
import App from './App.vue';
// #ifdef VUE3
import { createSSRApp } from 'vue'
import { createApp } from 'vue' // 注意这里改成 createApp
// 创建应用实例
const app = createSSRApp(App)
const app = createApp(App) // 使用 createApp
// 手动挂载应用
app.mount('#app') // 使用与 index.html 中一致的挂载点
// 挂载应用
app.mount('#app')
// 如果你需要支持 SSR 导出,保留这个函数
// 导出 createApp 函数供 SSR 使用
export function createApp() {
return { app }
}
// #endif
// #ifndef VUE3
// Vue 2 兼容代码
import Vue from 'vue'
import App from './App'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()
// #endif
//#ifdef H5
window.sessionStorage.setItem('firstEntryUrl', window.location.href.split('#')[0])
// #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment