news

<template>     <div class="home-page">      我是新闻页面     <!-- {{infoData}} -->     <ul>         <li v-for="(item,index) in infoData" :key="index"> {{item.name}}:{{item.content}}  </li>     </ul>     </div> </template> <script> export default {     data(){         return {             infoData:{}         }     },     methods:{         getInfoList2(){             var res = this.$axios.post(this.$api.basic.info,{                 kind:'school',                 form:true             }).then((res)=>{                   console.log(res);             });         },                  getInfoList(){           this.$axios.post(this.$api.basic.info,{               kind:'school',               form:true           }).then((res)=>{               this.infoData = res.result;               console.log('res.tag',res.tag)
                if(res.tag==1){                     return  this.$axios.post(this.$api.basic.msg,{                         tag:res.tag,                         form:true                     })                 }           }).then((res)=>{               if(res.kind==2){                     return  this.$axios.post(this.$api.basic.hello,{                         id:res.kind,                         form:false                     })               }           }).then((res)=>{               console.log(res.result);           })            }     },     mounted(){         // this.getInfoList2();         this.getInfoList();              } } </script>
上一篇:Thymeleaf拼接URL,字符和请求参数使用


下一篇:[springboot]Field newsMapper in com.news.service.NewsService required a bean of type 'com.news.