diff --git a/packages/@vue/cli-plugin-router/generator/template-vue3/src/App.vue b/packages/@vue/cli-plugin-router/generator/template-vue3/src/App.vue
index 1ca554712f..69d93f7d3c 100644
--- a/packages/@vue/cli-plugin-router/generator/template-vue3/src/App.vue
+++ b/packages/@vue/cli-plugin-router/generator/template-vue3/src/App.vue
@@ -8,10 +8,10 @@ replace:
<%# REPLACE %>
-
+
+
<%# END_REPLACE %>
@@ -24,20 +24,20 @@ replace:
<%_ if (rootOptions.cssPreprocessor !== 'stylus') { _%>
<%_ if (!rootOptions.cssPreprocessor) { _%>
-#nav {
+nav {
padding: 30px;
}
-#nav a {
+nav a {
font-weight: bold;
color: #2c3e50;
}
-#nav a.router-link-exact-active {
+nav a.router-link-exact-active {
color: #42b983;
}
<%_ } else { _%>
-#nav {
+nav {
padding: 30px;
a {
@@ -51,7 +51,7 @@ replace:
}
<%_ } _%>
<%_ } else { _%>
-#nav
+nav
padding 30px
a
font-weight bold
diff --git a/packages/@vue/cli-plugin-router/generator/template/src/App.vue b/packages/@vue/cli-plugin-router/generator/template/src/App.vue
index 582a95833b..7d33737d7b 100644
--- a/packages/@vue/cli-plugin-router/generator/template/src/App.vue
+++ b/packages/@vue/cli-plugin-router/generator/template/src/App.vue
@@ -9,10 +9,10 @@ replace:
<%# REPLACE %>
@@ -26,20 +26,20 @@ replace:
<%_ if (rootOptions.cssPreprocessor !== 'stylus') { _%>
<%_ if (!rootOptions.cssPreprocessor) { _%>
-#nav {
+nav {
padding: 30px;
}
-#nav a {
+nav a {
font-weight: bold;
color: #2c3e50;
}
-#nav a.router-link-exact-active {
+nav a.router-link-exact-active {
color: #42b983;
}
<%_ } else { _%>
-#nav {
+nav {
padding: 30px;
a {
@@ -53,7 +53,7 @@ replace:
}
<%_ } _%>
<%_ } else { _%>
-#nav
+nav
padding 30px
a
font-weight bold