Commit d9a07ba7 by zhangxingmin

push

parent 2533c9f7
// main.js
import App from './App.vue'; import App from './App.vue';
// #ifdef VUE3 // #ifdef VUE3
import { createApp } from 'vue' import { createApp } from 'vue'
const app = createApp(App) const vueApp = createApp(App) // 重命名为 vueApp
app.mount('#app') vueApp.mount('#app')
// #endif // #endif
// #ifndef VUE3 // #ifndef VUE3
// Vue 2 兼容代码 - 使用命名导入 // Vue 2 兼容代码 - 使用 Vue 2 的标准导入方式
import * as Vue from 'vue' import Vue from 'vue'
App.mpType = 'app' App.mpType = 'app'
const app = new Vue.default({ const vue2App = new Vue({ // 重命名为 vue2App
...App ...App
}) })
app.$mount() vue2App.$mount()
// #endif // #endif
//#ifdef H5 //#ifdef H5
......
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