+
@@ -46,7 +46,7 @@
export default {
data() {
return {
- pattern: this.$route.query.pattern,
+ pattern: Number(this.$route.query.pattern),
projectList:[{
title:'期权套期保值实验',
url:'http://122.9.154.146/kd/#/Dashboard',
@@ -67,6 +67,9 @@ export default {
this.patternId = this.$route.query.type
},
methods: {
+ toPrac(){
+ this.core.toSubSystem('','','',this.pattern)
+ },
toNext(index) {
this.$store.commit("patternData",{pattern: this.pattern});
this.$router.push(`dashboard#${index}`)
diff --git a/src/utils/core.js b/src/utils/core.js
index 22764c1..d9b981f 100644
--- a/src/utils/core.js
+++ b/src/utils/core.js
@@ -188,9 +188,8 @@ function toSubSystem(className = '',id = '',classId = '',pattern = ''){
location.href = pattern === 0 ? config.subSystem1 : config.subSystem2
})
}else{
- location.href = config.subSystem1
+ location.href = pattern === 0 ? config.subSystem1 : config.subSystem2
}
-
}
function encodeString(str) {