An article about cloud code 0095.

     // result.body.message is a list of all content means that you can show all  
                // will show all the contents go to the page  
                // If you look at the content of post-click to see newsitems.vue
                // display the entire contents after completion If you need to get certain content, then you need to get his id value
                // then after obtaining the this.xinweiList
                // add in the id route in
    //             { 
    //   path: '/box/newsitems/:id',
    //   component: Newsitems
    // },
      // and then go to newsitems.vue
      // id:this.$route.params.id
      // Then you can show content
      // both are indispensable
  //      data(){
  //     return{
  // id:. This $ route.params.id, // This is the passed url address id value
  // newsinfo: {}
  //     }
  // },
  // xinwei.vue is to obtain total id
  // The newsitems.vue is to obtain a single id
  // the two are not the same

Guess you like

Origin www.cnblogs.com/yangjingyang/p/12325661.html