소스 검색

Update form.vue

moccus 2 년 전
부모
커밋
109fbef707
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  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)
     }
   },