Browse Source

首页参数传递

master
z_yu 2 years ago
parent
commit
12c7c35166
  1. 6
      src/views/index.vue

6
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) => {

Loading…
Cancel
Save