增加晶全app静态页面
This commit is contained in:
35
main.js
Normal file
35
main.js
Normal file
@ -0,0 +1,35 @@
|
||||
import App from './App'
|
||||
|
||||
// 引入 uView UI
|
||||
import uView from 'vk-uview-ui';
|
||||
import bleTool from '@/store/BLETools.js';
|
||||
|
||||
// #ifndef VUE3
|
||||
import Vue from 'vue'
|
||||
import store from './store/store';
|
||||
import './uni.promisify.adaptor'
|
||||
Vue.config.productionTip = false
|
||||
Vue.prototype.$bleTool = bleTool;
|
||||
App.mpType = 'app'
|
||||
const app = new Vue({
|
||||
store,
|
||||
...App
|
||||
})
|
||||
Vue.use(uView)
|
||||
app.$mount()
|
||||
// #endif
|
||||
|
||||
// #ifdef VUE3
|
||||
import {
|
||||
createSSRApp
|
||||
} from 'vue'
|
||||
export function createApp() {
|
||||
const app = createSSRApp(App)
|
||||
app.config.globalProperties.$bleTool = bleTool;
|
||||
// 使用 uView UI
|
||||
app.use(uView)
|
||||
return {
|
||||
app
|
||||
}
|
||||
}
|
||||
// #endif
|
Reference in New Issue
Block a user