update: [滿意度通知] route query parameter - 清除方式調整
| | |
| | | } |
| | | |
| | | clearSatisfactionId() { |
| | | console.log('close'); |
| | | this.$router.push({query: {}}); |
| | | // NOTE: 刪除特定的 query parameter [Tomas, 2022/1/24 11:36] |
| | | // [REF] How to remove a parameter from this.$router.query Nuxt.js? https://reurl.cc/X45aMD |
| | | let newRouteQuery = {}; |
| | | Object.keys(this.$route.query).forEach((key) => { |
| | | if (key !== 'appointmentId') { |
| | | newRouteQuery[key] = this.$route.query[key] |
| | | } |
| | | }) |
| | | this.$router.push(newRouteQuery); |
| | | this.storageClearSatisfactionIdFromMsg(); |
| | | } |
| | | |