main.js 386 B

12345678910111213141516171819202122
  1. import {
  2. createSSRApp
  3. } from 'vue'
  4. import App from './App.vue'
  5. import * as Pinia from "pinia"
  6. import {
  7. createUnistorage
  8. } from "./uni_modules/pinia-plugin-unistorage"
  9. console.info('v3.5.0');
  10. export function createApp() {
  11. const app = createSSRApp(App)
  12. const store = Pinia.createPinia();
  13. store.use(createUnistorage());
  14. app.use(store);
  15. return {
  16. app,
  17. Pinia,
  18. }
  19. }