chenlong 4 jaren geleden
bovenliggende
commit
429e993710
3 gewijzigde bestanden met toevoegingen van 6 en 19 verwijderingen
  1. 1 1
      public/func.html
  2. 4 17
      src/App.vue
  3. 1 1
      src/main.js

+ 1 - 1
public/func.html

@@ -11,7 +11,7 @@
     <noscript>
       <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
     </noscript>
-    <div id="app"></div>
+    <div id="func"></div>
     <!-- built files will be auto injected -->
   </body>
 </html>

+ 4 - 17
src/App.vue

@@ -1,28 +1,15 @@
 <template>
   <div id="app">
-    <img alt="Vue logo" src="./assets/logo.png">
-    <HelloWorld msg="Welcome to Your Vue.js App"/>
+    <router-view></router-view>
   </div>
 </template>
 
 <script>
-import HelloWorld from './components/HelloWorld.vue'
-
 export default {
-  name: 'App',
-  components: {
-    HelloWorld
-  }
+  name: 'App'
 }
 </script>
 
-<style>
-#app {
-  font-family: Avenir, Helvetica, Arial, sans-serif;
-  -webkit-font-smoothing: antialiased;
-  -moz-osx-font-smoothing: grayscale;
-  text-align: center;
-  color: #2c3e50;
-  margin-top: 60px;
-}
+<style scoped>
+
 </style>

+ 1 - 1
src/main.js

@@ -1,6 +1,6 @@
 import Vue from 'vue'
 import App from './App.vue'
-import router from './routers'
+import router from './routers/index'
 
 Vue.config.productionTip = false