ReedawFoodApp/main.js

45 lines
864 B
JavaScript

import App from './App'
// vuex
import store from './store'
Vue.prototype.$store = store;
// 公共js
import tools from '@/toolJs/tools.js'
Vue.prototype.$tools = tools;
//请求
import http from '@/toolJs/https.js'
Vue.prototype.$http = http;
//接口
import model from '@/toolJs/model.js'
Vue.prototype.$model = model;
// 蓝牙js
import useBluetooth from "@/toolJs/Bluetooth.js";
Vue.prototype.$ble = useBluetooth;
//模拟数据
import video from '@/video.json'
Vue.prototype.$video = video;
//模拟数据
import json from '@/content.json'
Vue.prototype.$json = json;
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()
// #endif
// #ifdef VUE3
import {
createSSRApp
} from 'vue'
export function createApp() {
const app = createSSRApp(App)
return {
app
}
}
// #endif