Преглед изворни кода

模板预览返回跳转错误

natasha пре 5 дана
родитељ
комит
92c70f0593

+ 2 - 0
src/views/personal_workbench/template_list/preview/CommonPreview.vue

@@ -285,6 +285,8 @@ export default {
         this.$router.push({ path: '/personal_workbench/template_list' });
       } else if (this.type === 'org') {
         this.$router.push({ path: '/personal_workbench/template_list_org' });
+      } else if (this.type === 'admin') {
+        this.$router.push({ path: '/personal_workbench/template_list_admin' });
       } else {
         this.$router.push({ path: '/personal_workbench/template_list_manager' });
       }

+ 1 - 1
src/views/personal_workbench/template_list_admin/index.vue

@@ -185,7 +185,7 @@ export default {
       if (!row.id) return;
       this.$router.push({
         path: `/personal_workbench/template_list/preview/${row.id}`,
-        query: { template_type: 'manager' },
+        query: { template_type: 'admin' },
       });
     },
     // 更改模板状态