Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit ca60f7c

Browse files
committed
refactor(framework/vue): rename Router to App.
1 parent eda80d3 commit ca60f7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

framework/vue/router.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ const createRouter = (props?: RootProps) => {
5252
const { defaultExport } = defaultRouteModules;
5353

5454
if (defaultExport) {
55-
const router = defineComponent({
56-
name: "Router",
55+
const App = defineComponent({
56+
name: "App",
5757
render() {
5858
return [h(defaultExport as Component)];
5959
},
6060
});
6161

62-
const app = VueCreateSSRApp(router);
62+
const app = VueCreateSSRApp(App);
6363

6464
app.provide("modules", modules);
6565
app.provide("dataCache", dataCache);

0 commit comments

Comments
 (0)