()
| 25 | const { updateUserInfo } = useAppStateStore(); |
| 26 | |
| 27 | export 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 | } |
nothing calls this directly
no test coverage detected