├── php-api/ # 改造后的PHP接口层 ├── java-ad-service/ # 若依框架微服务(广告+VIP+分账) ├── uniapp-reader/ # UniApp前端项目 │ ├── pages/ # 各端页面 │ └──
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

main.js 654B

12345678910111213141516171819202122232425262728
  1. import Vue from 'vue'
  2. import App from './App'
  3. import store from './store'
  4. import plugins from './plugins'
  5. import './permission'
  6. import { getDicts } from "@/api/system/dict/data"
  7. // 添加 Composition API 支持
  8. import VueCompositionAPI from '@vue/composition-api'
  9. Vue.use(VueCompositionAPI)
  10. // 仅适用于 Vue 2 的 Pinia 初始化
  11. import { createPinia, PiniaVuePlugin } from 'pinia'
  12. Vue.use(PiniaVuePlugin)
  13. const pinia = createPinia()
  14. const app = new Vue({
  15. ...App,
  16. store,
  17. pinia, // 注入 pinia 实例
  18. render: h => h(App)
  19. })
  20. Vue.config.productionTip = false
  21. Vue.prototype.$store = store
  22. Vue.prototype.getDicts = getDicts
  23. app.$mount('#app')