backend-Tv/main.js
2025-07-19 19:41:27 +08:00

31 lines
566 B
JavaScript

import App from './App'
import httpRequest from './api/httpRequest.js'
import store from './store'
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.prototype.$tv = store;
Vue.prototype.$api = httpRequest;
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
store,
...App
})
app.$mount()
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
const app = createSSRApp(App)
app.config.globalProperties.$api = httpRequest;
app.use(store);
return {
app
}
}
// #endif