Browse Source

新建试题后,跳转到试题列表

yellowtaotao 3 years ago
parent
commit
63e1c0565b

+ 1 - 1
src/views/examQuestionManagement/examQusetionCreateGapFilling.vue

@@ -370,7 +370,7 @@ export default {
         .then(() => {
           this.loading = false;
           this.$message.success('添加填空题成功');
-          // this.$router.push({ name: '/examQuestionManagement' });
+          this.$router.replace({ path: '/examQuestionManagement' });
         })
         .catch(() => {
           this.loading = false;

+ 1 - 1
src/views/examQuestionManagement/examQusetionCreateMultiple.vue

@@ -411,7 +411,7 @@ export default {
         .then(() => {
           this.loading = false;
           this.$message.success('添加多选题成功');
-          // this.$router.push({ path: 'list' });
+          this.$router.replace({ path: '/examQuestionManagement' });
         })
         .catch(() => {
           this.loading = false;

+ 1 - 1
src/views/examQuestionManagement/examQusetionCreateSingle.vue

@@ -428,7 +428,7 @@ export default {
         .then(() => {
           this.loading = false;
           this.$message.success('添加单选题成功');
-          // this.$router.push({ path: 'list' });
+          this.$router.replace({ path: '/examQuestionManagement' });
         })
         .catch(() => {
           this.loading = false;

+ 1 - 1
src/views/examQuestionManagement/examQusetionCreateTrueOrFalse.vue

@@ -386,7 +386,7 @@ export default {
         .then(() => {
           this.loading = false;
           this.$message.success('添加判断题成功');
-          // this.$router.push({ path: 'list' });
+          this.$router.replace({ path: '/examQuestionManagement' });
         })
         .catch(() => {
           this.loading = false;