Skip to content

Commit

Permalink
AMP-3122: fix router v4 breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
yingfeng-iu committed Aug 21, 2024
1 parent 30c5599 commit c13b378
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/router.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Vue from "vue";
import Router from "vue-router";
import { createRouter } from 'vue-router'

import Login from "./components/account/Login.vue";
import Deliverables from "./components/deliverables/Deliverables.vue";
Expand Down Expand Up @@ -27,7 +28,7 @@ import store from "./store/amp-store.js";

Vue.use(Router);

var router = new Router({
var router = createRouter({
routes: [
{
path: "/",
Expand Down

0 comments on commit c13b378

Please sign in to comment.