Browse Source

test

master
domsgit 5 years ago
parent
commit
06ccf8001e
1 changed files with 8 additions and 4 deletions
  1. 12
      src/components/HelloWorld.vue

12
src/components/HelloWorld.vue

@ -19,8 +19,8 @@
<li><a href="https://twitter.com/vuejs" target="_blank" rel="noopener">Twitter</a></li>
<li><a href="https://news.vuejs.org" target="_blank" rel="noopener">News</a></li>
</ul>
<h2>后端接口数据{{apimsg}}</h2>
<h2>yapi接口数据{{mockmsg}}</h2>
<h2>后端接口数据{{this.apimsg}}</h2>
<h2>yapi接口数据{{this.mockmsg}}</h2>
</div>
</template>
@ -31,8 +31,12 @@ export default {
name: 'HelloWorld',
props: {
msg: String,
mockmsg: '',
apimsg: '',
},
data() {
return {
mockmsg: '',
apimsg: '',
}
},
mounted() {
axios

Loading…
Cancel
Save