瀏覽代碼

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)
     }
   },