main.js 574 Bytes
import App from './App';
import { createSSRApp } from 'vue';
import { setupPinia } from './sheep/store';
import uviewPlus from 'uview-plus';
import Tabbar from '@/components/tabbar.vue';
export function createApp() {
  const app = createSSRApp(App);

  setupPinia(app);
  app.use(uviewPlus, () => {
    return {
      options: {
        // 修改config对象的属性
        config: {
          // 只加载一次字体图标
          loadFontOnce: true,
          unit:'rpx'
        },
      },
    };
  });
  app.component('Tabbar', Tabbar);

  return {
    app,
  };
}