add
parent
c3de4d6c6d
commit
8b4b776c13
@ -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…
Reference in New Issue