MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / mountApp

Function mountApp

frontend/src/mount.ts:27–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25const { updateUserInfo } = useAppStateStore();
26
27export async function mountApp() {
28 try {
29 const { execute: reqUserInfo } = userInfoApi();
30 const info = await reqUserInfo();
31 updateUserInfo(info.value);
32 } catch (err) {
33 console.error("Init user info Error:", err);
34 } finally {
35 const app = createApp(App);
36 app.use(createPinia());
37 app.use(router);
38 app.use(getI18nInstance());
39 app.mount("#app-mount-point");
40 }
41}

Callers

nothing calls this directly

Calls 5

getI18nInstanceFunction · 0.90
updateUserInfoFunction · 0.85
errorMethod · 0.80
useMethod · 0.80
mountMethod · 0.80

Tested by

no test coverage detected