SmartStorage/main.js

34 lines
542 B
JavaScript
Raw Normal View History

2023-12-20 15:15:23 +08:00
import App from './App'
import {
2024-08-19 13:25:42 +08:00
router,
RouterMount
2023-12-20 15:15:23 +08:00
} from './router.js'
// #ifndef VUE3
import Vue from 'vue'
import uView from '@/uni_modules/uview-ui'
import './uni.promisify.adaptor'
2024-01-02 13:26:42 +08:00
import $api from '@/apis/apis.js'
2023-12-20 15:15:23 +08:00
Vue.config.productionTip = false
Vue.prototype.$api = $api
2024-08-19 13:25:42 +08:00
2023-12-20 15:15:23 +08:00
Vue.use(router)
2024-08-19 13:25:42 +08:00
.use(uView)
2023-12-20 15:15:23 +08:00
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