1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
| // #ifndef VUE3
| import Vue from 'vue'
| import App from './App'
|
| Vue.config.productionTip = false
|
|
| // 引入elementUI开发
| import ElementUI from 'element-ui';
| import 'element-ui/lib/theme-chalk/index.css';
|
| Vue.use(ElementUI);
|
| // 在 main.js 或类似的入口文件中
|
| App.mpType = 'app'
|
| const app = new Vue({
| ...App
| })
| app.$mount()
| // #endif
|
| // #ifdef VUE3
| import { createSSRApp } from 'vue'
| import App from './App.vue'
| export function createApp() {
| const app = createSSRApp(App)
| return {
| app
| }
| }
| // #endif
|
|