mirror of
https://gitee.com/h_mo/uniapp-vue3-vite-ts-template
synced 2025-04-05 06:12:44 +08:00
17 lines
277 B
TypeScript
17 lines
277 B
TypeScript
import { createSSRApp } from 'vue';
|
|
import App from './App.vue';
|
|
import { setupRouter } from './router';
|
|
import { setupStore } from './stores';
|
|
|
|
export function createApp() {
|
|
const app = createSSRApp(App);
|
|
|
|
setupStore(app);
|
|
|
|
setupRouter(app);
|
|
|
|
return {
|
|
app,
|
|
};
|
|
}
|