| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- // #ifndef VUE3
- import Vue from 'vue'
- import App from './App'
- import {
- ApiToPromiseClient
- } from "./grpc/track_offical_grpc_web_pb.js"
- Vue.config.productionTip = false
- App.mpType = 'app'
- // 建立grpc连接服务
- // 测试版
- let client = new ApiToPromiseClient("http://192.168.0.3:10000", null, null)
- // 正式版
- // let client = new ApiAssClient("http://otapi.beswell.com:10000", null, null)
- // 挂载为全局方法
- Vue.prototype.$client = client
- // #ifdef APP-PLUS
- // import { usqlite } from '@/uni_modules/onemue-USQLite/js_sdk/usqlite.js'
- import SqliteHelper from './utils/SqliteHelper.js'
- import nfc from './utils/ouu-nfc.js'
- Vue.prototype.$dbHelper = SqliteHelper
- Vue.prototype.$nfc = nfc
- nfc.listenNFCStatus();
- // #endif
- // #ifdef H5
- import IndexedDB from '@/utils/IndexedDB'
- Vue.prototype.$dbHelper = IndexedDB
- // #endif
- 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
|