Browse Source

显示项目名称

xujunjie 1 năm trước cách đây
mục cha
commit
b79aea953a
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      pages/daily/form.vue

+ 2 - 2
pages/daily/form.vue

@@ -126,8 +126,8 @@ export default {
   methods: {
     ...mapActions(["queryProjectList"]),
     getProjectName(id) {
-      const item = this.projectList.find(item => item.ID == id)
-      return item ? item.Name : '-'
+      const item = this.projectList.find(item => item.id == id)
+      return item ? item.project_name : '-'
     },
     selectProject(key, e) {
       const select = this.projectList[e.target.value];