From 930f176f6ce5b39f8e9207b796f563f1781da65a Mon Sep 17 00:00:00 2001 From: xuyiming Date: Thu, 29 Oct 2020 18:57:14 +0800 Subject: [PATCH] fixed --- src/components/shop-car-apply/apply_form.vue | 2 +- src/components/table/table-um.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/shop-car-apply/apply_form.vue b/src/components/shop-car-apply/apply_form.vue index 403991e..c28bd83 100644 --- a/src/components/shop-car-apply/apply_form.vue +++ b/src/components/shop-car-apply/apply_form.vue @@ -64,7 +64,7 @@ export default { computed: {}, created() {}, mounted() { - this.formInline.depart = this.$store.state.userInfo.department_name; + this.formInline.depart = this.$store.state.userInfo&&this.$store.state.userInfo.department_name || ""; }, methods: { submitForm() { diff --git a/src/components/table/table-um.vue b/src/components/table/table-um.vue index 33c428e..8682b9c 100644 --- a/src/components/table/table-um.vue +++ b/src/components/table/table-um.vue @@ -399,7 +399,7 @@ export default { }, maxheight: { type: [String, Number], - default: "" + default: "0" } }, data() { -- 2.26.0