diff --git a/src/views/index.vue b/src/views/index.vue index aa81385..c0d3cd6 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -91,7 +91,7 @@ export default { methods: { toPath(path) { if (path === '/CurrentRackBook') { - const query = { leftShelfNo: '1201-03-001-A-01', rightShelfNo: '1201-03-001-B-01' } + const query = { leftShelfNo: this.leftShelfNo, rightShelfNo: this.rightShelfNo } this.$router.push({ path: path, query: query }) } else { this.$router.push(path) @@ -126,8 +126,8 @@ export default { }, // 初始化首页书架信息 initSmartBookshelf() { - // this.$route.query.leftShelfNo - // this.$route.query.rightShelfNo + // this.leftShelfNo = this.$route.query.leftShelfNo + // this.rightShelfNo = this.$route.query.rightShelfNo const params = { leftShelfNo: this.leftShelfNo, rightShelfNo: this.rightShelfNo } // const _this = this initSmartBookshelf(params).then((res) => {