SHARE
TWEET

Untitled

a guest Mar 30th, 2020 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import Vue from 'vue'
  2. import VueRouter from 'vue-router'
  3. import Add from '@/components/Add.vue';
  4.  
  5. Vue.use(VueRouter)
  6.  
  7. const routes = [
  8.   {
  9.     path: "/add",
  10.     name: "Add",
  11.     component: Add
  12.   }
  13. ];
  14.  
  15. const router = new VueRouter({
  16.   mode: 'history',
  17.   base: process.env.BASE_URL,
  18.   routes
  19. });
  20.  
  21. export default router
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top