diff --git a/src/views/accessToLibrary/index.vue b/src/views/accessToLibrary/index.vue index 2fc9216..00bce8e 100644 --- a/src/views/accessToLibrary/index.vue +++ b/src/views/accessToLibrary/index.vue @@ -42,7 +42,8 @@ export default { dayNum: 0, dayOutNum: 0, monthNum: 0, - totalNum: 0 + totalNum: 0, + otherDoorOther: null } }, created() { @@ -63,10 +64,16 @@ export default { }, methods: { getInitIntoNum() { + this.otherDoorOther = window.location.href.split('?')[1]?.split('=')[1] + if (this.otherDoorOther !== '' && this.otherDoorOther.indexOf('&')) { + this.otherDoorOther = this.otherDoorOther.replace(/\&/g, '、') + } else { + this.otherDoorOther = null + } let params if (!this.isSelfService) { params = { - doorCodes: null + doorCodes: this.otherDoorOther } } else { params = {