diff --git a/src/components/shop-car-apply/apply_form.vue b/src/components/shop-car-apply/apply_form.vue index 403991e54576cc57210167774f3a9207b3290f3b..c28bd83990ab8fb4f2c4f930ce2d50b2b4d089e8 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 33c428e537f890b912a302515c47d1fe96f612ef..8682b9c55f92e36a6abfa857784a670e4fde3dc5 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() {