Commit 2ad02480 by zhangxingmin

push

parent 0dabc838
// main.js
import Vue from 'vue' import Vue from 'vue'
import App from './App.vue' import App from './App';
// 确保 App 组件的类型正确 // #ifndef VUE3
App.mpType = 'app'
// 创建 Vue 实例 App.mpType = 'app'
const app = new Vue({ const app = new Vue({
render: h => h(App) ...App
}) })
// 挂载应用
app.$mount() app.$mount()
// #endif
// // #ifdef VUE3
// import { createSSRApp } from 'vue'
// export function createApp() {
// const app = createSSRApp(App)
// return {
// app
// }
// }
// #endif
//#ifdef H5
window.sessionStorage.setItem('firstEntryUrl',window.location.href.split('#')[0])
// #endif
// H5 环境下设置 firstEntryUrl
if (process.env.VUE_APP_PLATFORM === 'h5') {
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