Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

终于运行起来了。。。普天同庆 #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Vue from 'vue'
import Vuex from 'vuex'
import VueRouter from 'vue-router'
import VueResource from 'vue-resource'
import App from './components/App.vue'
import App from './views/app.vue'
import { configRouter } from './route'

import './styles/css/global.scss'
Expand Down
10 changes: 7 additions & 3 deletions src/route/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@
export function configRouter (router) {
router.map({
'/': {
component: require('../components/Home.vue')

component: require('../views/home.vue'),
name: 'home'
},
'/components': {
component: require('../views/components.vue'),
name: 'components'
},
'*': {
component: require('../components/NotFound.vue')
component: require('../views/not-found.vue')
}
})

Expand Down
File renamed without changes.
24 changes: 24 additions & 0 deletions src/views/components.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<template>
<div>
compontents demo2
</div>
</template>

<script>
export default {
data () {
return {
}
},
compiled(){
},

methods: {
}
}
</script>

<style lang="less">

</style>

File renamed without changes.
File renamed without changes.
File renamed without changes.