From da6494483bef6b4bfd4989611b4ebb864b6de252 Mon Sep 17 00:00:00 2001 From: Mark Eaton Date: Fri, 17 Feb 2023 11:52:20 -0500 Subject: [PATCH] move main to main-old; add new main --- configuration/{main-dev.js => main-old.js} | 6 +++--- configuration/main.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) rename configuration/{main-dev.js => main-old.js} (99%) diff --git a/configuration/main-dev.js b/configuration/main-old.js similarity index 99% rename from configuration/main-dev.js rename to configuration/main-old.js index 46cc610..98563bc 100644 --- a/configuration/main-dev.js +++ b/configuration/main-old.js @@ -28,9 +28,9 @@ const menusComponent = { props: ['item'] } -const { createApp } = Vue -createApp({ +new Vue({ + el: '#app', components: { 'nav-component': navComponent, 'menus-component': menusComponent @@ -242,4 +242,4 @@ createApp({ } } } -}).mount('#app'); +}); diff --git a/configuration/main.js b/configuration/main.js index 98563bc..46cc610 100644 --- a/configuration/main.js +++ b/configuration/main.js @@ -28,9 +28,9 @@ const menusComponent = { props: ['item'] } +const { createApp } = Vue -new Vue({ - el: '#app', +createApp({ components: { 'nav-component': navComponent, 'menus-component': menusComponent @@ -242,4 +242,4 @@ new Vue({ } } } -}); +}).mount('#app');