shangjia1.1/main.js

29 lines
562 B
JavaScript
Raw Normal View History

2024-11-08 14:33:35 +08:00
import App from './App'
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import uView from 'uni_modules/uview-ui'
Vue.use(uView)
uni.$u.config.unit = 'rpx'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
2024-11-26 15:28:15 +08:00
...App
2024-11-08 14:33:35 +08:00
})
2024-11-26 15:28:15 +08:00
Vue.prototype.$shopId = uni.getStorageSync('shopId')
// Vue.prototype.$shopAdminId = uni.getStorageSync('shopManage').shop_admin_id
2024-11-08 14:33:35 +08:00
app.$mount()
// #endif
// #ifdef VUE3
2024-11-26 15:28:15 +08:00
import {
createSSRApp
} from 'vue'
2024-11-08 14:33:35 +08:00
export function createApp() {
2024-11-26 15:28:15 +08:00
const app = createSSRApp(App)
return {
app
}
2024-11-08 14:33:35 +08:00
}
// #endif