|
|
@@ -106,6 +106,7 @@
|
|
|
mapGetters
|
|
|
} from "vuex";
|
|
|
import {addRecipeFrom} from '@/api/dataAnalysis';
|
|
|
+ import {tryRun} from '@/tool';
|
|
|
export default {
|
|
|
components: {
|
|
|
IndexBar,
|
|
|
@@ -175,13 +176,16 @@
|
|
|
this.current = 0;
|
|
|
},
|
|
|
toQuestion(id = "", type = "1") {
|
|
|
+ const name = tryRun(() => this.bingzhengS.find(item => item.groupid === id).groupname);
|
|
|
if (this.key2) {
|
|
|
this.$router.push({
|
|
|
- path: "/index/dialecticalq?id=" + id + "&type=3"
|
|
|
+ path: `/index/dialecticalq`,
|
|
|
+ query: {id, name, type: 3}
|
|
|
});
|
|
|
} else {
|
|
|
this.$router.push({
|
|
|
- path: "/index/dialecticalq?id=" + id + "&type=" + type
|
|
|
+ path: `/index/dialecticalq`,
|
|
|
+ query: {id, name, type}
|
|
|
});
|
|
|
}
|
|
|
|