import App from './App.vue';
import { createSSRApp } from 'vue';
import { createPinia } from 'pinia';
import { registryConvert } from './common/utils/ConvertRgeistry';

import DialogAction from '@imengyu/imengyu-utils/dist/uniapp/DialogAction';
import PageAction from '@imengyu/imengyu-utils/dist/uniapp/PageAction';

export function createApp() {
  const app = createSSRApp(App);
  const pinia = createPinia()
  app.use(DialogAction);
  app.use(PageAction);
  app.use(pinia);
  registryConvert();
  return {
    app
  }
}
