Skip to content

Commit a8b75bd

Browse files
committed
Change route class to id.
1 parent 2096c1a commit a8b75bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/nav-buttons/ExportMenu.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ export default {
251251
}
252252
else {
253253
// Adds component name as class for all routes
254-
str += `<div class = '${componentName}'>\n`;
254+
str += `<div id = '${componentName}'>\n`;
255255
}
256256
257257
// Add import component string to routes template
@@ -409,7 +409,7 @@ export default {
409409
return `\n\n<script lang="ts">\nimport { defineComponent } from "vue";\n ${str}\nexport default defineComponent ({\n name: '${componentName}',\n components: {\n${childrenComponentNames} }\n});\n<\/script>`;
410410
}
411411
str += "\n\n<script>";
412-
str += `${childComponentImportNames}`;
412+
str += `\n${childComponentImportNames}`;
413413
str += `\n\nexport default {`
414414
str += `\n components: {`
415415
str += `\n${childrenComponentNames} }\n};`;

0 commit comments

Comments
 (0)