let parmId =self.$route.path.replace(/.+\?cid=(.*)\&states=(.*)\&potion=(.+)\&url=(.+)/g,"$1");//获取传递Id
let states = self.$route.path.replace(/.+\?cid=(.*)\&states=(.*)\&potion=(.+)\&url=(.+)/g,"$2");//状态
let potion = self.$route.path.replace(/.+\?cid=(.*)\&states=(.*)\&potion=(.+)\&url=(.+)/g,"$3");//获取传递内容
let parm = "?activityId="+parmId+"&option="+states;
self.url = self.$route.path.replace(/.+\?cid=(.*)\&states=(.*)\&potion=(.+)\&url=(.+)/g,"$4");//获取上个路径的url参数
时间: 2024-10-14 10:15:18