Browse Source

区分b端,c端跳转返回逻辑

test
wzl 3 months ago
parent
commit
0aefa1da3b
1 changed files with 7 additions and 5 deletions
  1. +7
    -5
      src/views/psychological-scale/index.vue

+ 7
- 5
src/views/psychological-scale/index.vue View File

@@ -268,16 +268,18 @@ export default {
this.$toast('问卷提交成功', 3000)
this.isError = false
setTimeout(() => {
if (this.isModel) {
let fromSsjl = this.$store.getters.fromSsjl === 'true'
if (fromSsjl) {
// c端跳转按c端返回逻辑处理
this.onNavBack()
} else if (this.isModel) {
// 建模页跳转过来的要回建模页
/* this.$router.replace({
this.$router.replace({
name: 'PsychologicalModeling',
query: {
uid: this.uid,
},
}) */
this.onNavBack();

})
} else {
this.$router.replace({
name: 'PsychologicalScaleDetail',


Loading…
Cancel
Save