为了账号安全,请及时绑定邮箱和手机立即绑定

let id = this.$route.params.id;??

<script>
  export default {
    name: 'Show',
    data() {
      return {
        product: {},
        recommends: []
      }
    },
    //初始化
    created() {
      this.init();
    },

    methods: {
      init: function () {
       
        this.axios.get(`api/product/show/${id}`).then((res) => {
          //console.log(res);
          this.product = res.data.product;
          this.recommends = res.data.recommends;
        })
      },


正在回答

1 回答

这个问题是啥啊

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
使用vue2.0实现购物车和地址选配功能
  • 参与学习       96925    人
  • 解答问题       445    个

本视频教程结合案例完整贯穿各个知识点,轻松玩转vue2.0框架

进入课程

let id = this.$route.params.id;??

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信