猫妈狗爸伴宠师小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
514 B

3 months ago
3 months ago
3 months ago
3 months ago
  1. import uviewPlus from '@/uni_modules/uview-plus'
  2. import "@/static/styles/index.scss"
  3. import store from './store'
  4. // #ifndef VUE3
  5. import Vue from 'vue'
  6. import App from './App'
  7. Vue.config.productionTip = false
  8. App.mpType = 'app'
  9. const app = new Vue({
  10. ...App
  11. })
  12. app.use(uviewPlus)
  13. app.$mount()
  14. // #endif
  15. // #ifdef VUE3
  16. import {
  17. createSSRApp
  18. } from 'vue'
  19. import App from './App.vue'
  20. export function createApp() {
  21. const app = createSSRApp(App)
  22. app.use(uviewPlus)
  23. app.use(store)
  24. return {
  25. app
  26. }
  27. }
  28. // #endif