Commit ab6da24e by zhangxingmin

push

parent 0a5480f3
import App from './App.vue'; import App from './App.vue';
// #ifndef VUE3
import Vue from 'vue'
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()
// #endif
// #ifdef VUE3 // #ifdef VUE3
import { createSSRApp } from 'vue' import { createSSRApp } from 'vue'
// 创建应用实例
const app = createSSRApp(App)
// 手动挂载应用
app.mount('#app') // 使用与 index.html 中一致的挂载点
// 如果你需要支持 SSR 导出,保留这个函数
export function createApp() { export function createApp() {
const app = createSSRApp(App)
return { app } return { app }
} }
// #endif // #endif
//#ifdef H5 //#ifdef H5
window.sessionStorage.setItem('firstEntryUrl',window.location.href.split('#')[0]) window.sessionStorage.setItem('firstEntryUrl', window.location.href.split('#')[0])
// #endif // #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