来给生活比个耶!

1.按钮

   <el-button @click="albumList(scope.row.id)" size="mini" type="primary" size="small">相册列表</el-button>

2.js函数

   albumList (id){
                location.href=`album_list.html?id=`+id /*跳转页面传递id值*/
            },

3.钩子函数 加载截取参数id

   created(){
            var Ohref=window.location.href;
            var ids=Ohref.split("?id=");
            var id1 = ids[1];
            this.edit1(id1);
            console.log(id1+'接收参数id');
            this.fetchData();
        },

相关文章:

  • 2021-12-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-28
  • 2021-06-26
猜你喜欢
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2021-11-28
  • 2022-12-23
相关资源
相似解决方案