| | |
| | | import { createPinia } from 'pinia' |
| | | import message from './plugins/message' |
| | | import http from './plugins/http.js' |
| | | import store from './store' |
| | | // import store from './store/index.js' |
| | | |
| | | // #ifndef VUE3 |
| | | import Vue from 'vue' |
| | | import './uni.promisify.adaptor' |
| | | Vue.config.productionTip = false |
| | | App.mpType = 'app' |
| | | const app = new Vue({ |
| | | ...App |
| | | }) |
| | | app.$mount() |
| | | // #endif |
| | | |
| | | // #ifdef VUE3 |
| | | import { |
| | | createSSRApp |
| | | } from 'vue' |
| | |
| | | // 全局属性 |
| | | app.config.globalProperties.$message = message |
| | | app.config.globalProperties.$http = http |
| | | app.config.globalProperties.$store = store |
| | | // app.config.globalProperties.$store = store |
| | | |
| | | // uni.$u.setConfig({ |
| | | // config: { |
| | |
| | | app |
| | | } |
| | | } |
| | | // #endif |