main.js
869 字节
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// #ifndef VUE3
import Vue from 'vue'
//引入uView
import uView from "uview-ui";
Vue.use(uView);
import {rqs} from "./request/rqs.js";
import {loginCustom} from "./request/rqs.js";
Vue.prototype.$rqs = rqs;
Vue.prototype.$loginCustom = loginCustom;
import App from './App'
import {callup} from './CallUp';
Vue.prototype.$callup = callup;
import {clickCopy} from './CallUp';
Vue.prototype.$clickCopy = clickCopy;
// 提交前需要注释 本地调试使用
const vconsole = require('vconsole');
Vue.prototype.$vconsole = new vconsole();
Vue.config.productionTip = false
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