kitchendDevice/main.js

42 lines
760 B
JavaScript
Raw Permalink Normal View History

2023-09-08 15:17:21 +08:00
import App from './App'
import store from './store'
Vue.prototype.$store = store;
// js
import tools from '@/tools/tools.js'
Vue.prototype.$tools = tools;
2025-11-26 17:32:18 +08:00
// 蓝牙
import bluetooth from '@/tools/bluetooth.js'
Vue.prototype.$ble = bluetooth;
2023-09-08 15:17:21 +08:00
//请求
import http from '@/tools/https.js'
Vue.prototype.$http = http;
//接口
import model from '@/tools/model.js'
Vue.prototype.$model = model;
//模拟数据
2025-11-08 16:50:26 +08:00
import json from '@/content.json'
2023-09-08 15:17:21 +08:00
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