Browse Source

0919

master
xuhuajiao 2 years ago
parent
commit
34cef867a8
  1. 6
      src/views/accessToLibrary/index.vue

6
src/views/accessToLibrary/index.vue

@ -66,6 +66,8 @@ export default {
getInitIntoNum() { getInitIntoNum() {
// this.otherDoorOther = window.location.href.split('?')[1]?.split('=')[1] // this.otherDoorOther = window.location.href.split('?')[1]?.split('=')[1]
const currentURL = window.location.href const currentURL = window.location.href
console.log(currentURL)
if (currentURL.indexOf('?') !== -1) {
const query = currentURL.split('?')[1] const query = currentURL.split('?')[1]
console.log(query) console.log(query)
console.log(query.indexOf('startTime')) console.log(query.indexOf('startTime'))
@ -87,6 +89,9 @@ export default {
} else { } else {
this.otherDoorOther = query.split('=')[1] this.otherDoorOther = query.split('=')[1]
} }
} else {
this.otherDoorOther = null
}
const startTime = this.$route.query.startTime const startTime = this.$route.query.startTime
const endTime = this.$route.query.endTime const endTime = this.$route.query.endTime
@ -96,6 +101,7 @@ export default {
} else { } else {
this.otherDoorOther = null this.otherDoorOther = null
} }
let params let params
if (!this.isSelfService) { if (!this.isSelfService) {
params = { params = {

Loading…
Cancel
Save