Skip to content

Commit

Permalink
Route to / on startup, needed for production build
Browse files Browse the repository at this point in the history
  • Loading branch information
greimela committed Jun 28, 2022
1 parent f80dc77 commit 5e45021
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { ref, watchEffect } from 'vue';
import { onMounted, ref, watchEffect } from 'vue';
import { CogIcon, SparklesIcon } from '@heroicons/vue/outline';
import { Menu, MenuButton, MenuItem, MenuItems } from '@headlessui/vue';
import { toSvg } from 'jdenticon';
Expand All @@ -8,6 +8,9 @@ import { IpcService } from './helpers/ipc-service';
import { useRouter } from 'vue-router';
const router = useRouter();
onMounted(() => {
router.push('/');
});
const navigation = [
{ name: 'Single Mint', to: '/minting', icon: SparklesIcon },
Expand Down

0 comments on commit 5e45021

Please sign in to comment.