Skip to content

Instantly share code, notes, and snippets.

@xprnio

xprnio/Auth.vue Secret

Created August 21, 2019 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xprnio/ddababc0c83d1045839bb5dc2cec17ad to your computer and use it in GitHub Desktop.
Save xprnio/ddababc0c83d1045839bb5dc2cec17ad to your computer and use it in GitHub Desktop.
<template>
<div class="content">
<router-view :key="$route.fullPath"/>
</div>
</template>
<script>
export default {
name: 'Auth',
router: new Router({
mode: 'history',
routes: [
{
path: 'login',
name: 'login',
component: () => import('./Login.vue')
}
]
})
};
</script>
new Vue({
router: new Router({
mode: 'history',
base: '',
routes: [
{
path: 'auth',
name: 'auth',
component: () => import('./views/auth/Auth.vue'),
}
],
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment