Skip to content

Commit

Permalink
componentsディレクトリの整理
Browse files Browse the repository at this point in the history
  • Loading branch information
shun91 committed Jul 21, 2017
1 parent 605aca6 commit 63f8960
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Empty file added src/components/common/.gitkeep
Empty file.
4 changes: 2 additions & 2 deletions src/components/Hello.vue → src/components/home/Home.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="hello">
<div class="home">
<h1>coεic</h1>
<h2>Upload Comic</h2>
<p>
Expand All @@ -18,7 +18,7 @@
import axios from 'axios';
export default {
name: 'hello',
name: 'home',
// data() {
// return {
// key: value,
Expand Down
6 changes: 3 additions & 3 deletions src/router/index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import Vue from 'vue';
import Router from 'vue-router';
import Hello from '@/components/Hello';
import Home from '@/components/home/Home';

Vue.use(Router);

export default new Router({
routes: [
{
path: '/',
name: 'Hello',
component: Hello,
name: 'Home',
component: Home,
},
],
});

0 comments on commit 63f8960

Please sign in to comment.