2023-12-05 02:11:10 +00:00
|
|
|
import { createSSRApp } from "vue";
|
2023-12-06 02:32:31 +00:00
|
|
|
import * as Pinia from "pinia";
|
|
|
|
import tmui from "./tmui";
|
2023-12-05 02:11:10 +00:00
|
|
|
import App from "./App.vue";
|
2023-12-06 02:32:31 +00:00
|
|
|
// @ts-ignore
|
|
|
|
import api from "@/http";
|
2023-12-07 02:58:16 +00:00
|
|
|
import title from "./components/title/index.vue";
|
2023-12-05 02:11:10 +00:00
|
|
|
export function createApp() {
|
|
|
|
const app = createSSRApp(App);
|
2023-12-06 02:32:31 +00:00
|
|
|
app.config.globalProperties.$api = api;
|
2023-12-07 02:58:16 +00:00
|
|
|
app.component("title", title);
|
2023-12-06 02:32:31 +00:00
|
|
|
app.use(tmui, { shareDisable: false } as Tmui.tmuiConfig);
|
2023-12-05 02:11:10 +00:00
|
|
|
return {
|
|
|
|
app,
|
2023-12-06 02:32:31 +00:00
|
|
|
Pinia,
|
2023-12-05 02:11:10 +00:00
|
|
|
};
|
|
|
|
}
|