Commit d12348f6 by zhangxingmin

push

parent d9a07ba7
import App from './App.vue';
// #ifdef VUE3
import { createApp } from 'vue'
const vueApp = createApp(App) // 重命名为 vueApp
vueApp.mount('#app')
// #endif
// #ifndef VUE3
// Vue 2 兼容代码 - 使用 Vue 2 的标准导入方式
import Vue from 'vue'
App.mpType = 'app'
const vue2App = new Vue({ // 重命名为 vue2App
...App
})
vue2App.$mount()
// #endif
// 创建 Vue 3 应用实例
const app = createApp(App)
// 挂载应用到 DOM
app.mount('#app')
//#ifdef H5
window.sessionStorage.setItem('firstEntryUrl', window.location.href.split('#')[0])
// #endif
// H5 环境特定代码
if (typeof window !== 'undefined') {
window.sessionStorage.setItem('firstEntryUrl', window.location.href.split('#')[0])
}
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