master
ewall 7 years ago
parent c3de4d6c6d
commit 8b4b776c13

@ -1,9 +1,6 @@
import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Test from '@/view/test'
import Title1 from '@/view/Title1'
import Title2 from '@/view/Title2'
import Goods from '@/view/goods'
Vue.use(Router)

@ -1,30 +0,0 @@
<template>
<div class="test">
<button @click="get">click me</button>
</div>
</template>
<script>
export default {
data() {
return {
msg: 'hello vue'
}
},
methods: {
get() {
this.$http.get('package.json', {
params: {
},
headers: {
token: '123'
}
}).then(res => {
this.msg = res.data;
})
}
}
}
</script>
<style scoped></style>

@ -1,12 +0,0 @@
<template>
<div class="title">
This is title1.
</div>
</template>
<script>
export default {
}
</script>
<style scoped></style>

@ -1,12 +0,0 @@
<template>
<div class="content">
This is title2.
</div>
</template>
<script>
export default {
}
</script>
<style scoped></style>
Loading…
Cancel
Save