north 8 년 전
부모
커밋
d72eaf3d7a
3개의 변경된 파일9개의 추가작업 그리고 31개의 파일을 삭제
  1. 1 17
      www/vue/src/components/Hello.vue
  2. 5 0
      www/vue/src/main.js
  3. 3 14
      www/vue/src/router/index.js

+ 1 - 17
www/vue/src/components/Hello.vue

@@ -1,22 +1,6 @@
 <template>
   <div class="hello">
-    <h1>{{ msg }}</h1>
-    <h2>Essential Links</h2>
-    <ul>
-      <li><a href="https://vuejs.org" target="_blank">Core Docs</a></li>
-      <li><a href="https://forum.vuejs.org" target="_blank">Forum</a></li>
-      <li><a href="https://gitter.im/vuejs/vue" target="_blank">Gitter Chat</a></li>
-      <li><a href="https://twitter.com/vuejs" target="_blank">Twitter</a></li>
-      <br>
-      <li><a href="http://vuejs-templates.github.io/webpack/" target="_blank">Docs for This Template</a></li>
-    </ul>
-    <h2>Ecosystem</h2>
-    <ul>
-      <li><a href="http://router.vuejs.org/" target="_blank">vue-router</a></li>
-      <li><a href="http://vuex.vuejs.org/" target="_blank">vuex</a></li>
-      <li><a href="http://vue-loader.vuejs.org/" target="_blank">vue-loader</a></li>
-      <li><a href="https://github.com/vuejs/awesome-vue" target="_blank">awesome-vue</a></li>
-    </ul>
+
   </div>
 </template>
 

+ 5 - 0
www/vue/src/main.js

@@ -8,6 +8,11 @@ Vue.config.productionTip = false
 
 /* eslint-disable no-new */
 
+Vue.component(
+    'Hello',
+    require('./components/Hello.vue')
+)
+
 new Vue({
   el: '#app',
   router,

+ 3 - 14
www/vue/src/router/index.js

@@ -1,14 +1,3 @@
-import Vue from 'vue'
-import Router from 'vue-router'
-import Hello from '@/components/Hello'
-Vue.use(Router)
-
-export default new Router({
-  routes: [
-    {
-      path: '/',
-      name: 'Hello',
-      component: Hello
-    }
-  ]
-})
+export default[
+    {path: '/hello', component: require('../components/Hello.vue')}
+]