|
@@ -161,11 +161,24 @@ export default {
|
|
|
bExist = true;
|
|
|
if(objRBL.length == 1)
|
|
|
{
|
|
|
- window.location.href = '/originPage?m=8b934420_ZJUb_b6f9&benchid='+benchId;
|
|
|
+ this.$router.push({
|
|
|
+ path: '/',
|
|
|
+ query:{
|
|
|
+ m: '8b934420_ZJUb_b6f9',
|
|
|
+ benchid: benchId
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.$store.dispatch('common/setSquareStatus', false)
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- window.location.href = '/squarePage?m=8b934420_ZJUb_b6f9';
|
|
|
+ this.$router.push({
|
|
|
+ path: '/',
|
|
|
+ query:{
|
|
|
+ m: '8b934420_ZJUb_b6f9'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.$store.dispatch('common/setSquareStatus', true)
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -174,7 +187,13 @@ export default {
|
|
|
{
|
|
|
objRBL.push(benchId);
|
|
|
window.localStorage.setItem('remoteBenchList',JSON.stringify(objRBL));
|
|
|
- window.location.href = '/squarePage?m=8b934420_ZJUb_b6f9';
|
|
|
+ this.$router.push({
|
|
|
+ path: '/',
|
|
|
+ query:{
|
|
|
+ m: '8b934420_ZJUb_b6f9'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.$store.dispatch('common/setSquareStatus', true)
|
|
|
}
|
|
|
}
|
|
|
else
|
|
@@ -182,12 +201,15 @@ export default {
|
|
|
var rml= [];
|
|
|
rml.push(benchId);
|
|
|
window.localStorage.setItem('remoteBenchList',JSON.stringify(rml));
|
|
|
- window.location.href = '/originPage?m=8b934420_ZJUb_b6f9&benchid='+benchId;
|
|
|
+ this.$router.push({
|
|
|
+ path: '/',
|
|
|
+ query:{
|
|
|
+ m: '8b934420_ZJUb_b6f9',
|
|
|
+ benchid: benchId
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.$store.dispatch('common/setSquareStatus', false)
|
|
|
}
|
|
|
- //window.location.href = '/originPage?m=8b934420_ZJUb_b6f9';
|
|
|
- //window.parent.postMessage({
|
|
|
- // benchId: this.bench.id
|
|
|
- //}, '*');
|
|
|
}
|
|
|
}
|
|
|
};
|