Browse Source

Update form.vue

moccus 2 years ago
parent
commit
109fbef707
1 changed files with 1 additions and 4 deletions
  1. 1 4
      exam-06173-vue/src/views/admin/tmpl/form.vue

+ 1 - 4
exam-06173-vue/src/views/admin/tmpl/form.vue

@@ -14,9 +14,8 @@
 <script>
 import Join1Form from '@/views/admin/tmpl/components/Join1Form'
 import { apiFindTmpl } from '@/api/tmpl/tmpl'
-let name = 'ExamTmplAdd'
 export default {
-  name: name,
+  name: 'ExamTmplAdd',
   components: {
     Join1Form
   },
@@ -41,9 +40,7 @@ export default {
 
     // 查找详情
     const id = this.$route.params.id
-    name = 'ExamTmplAdd'
     if (id !== undefined) {
-      name = 'ExamTmplUpdate'
       this.fetchData(id)
     }
   },