| | |
| | | this.init(symbol); |
| | | }, |
| | | activated() { |
| | | let symbol = this.$route.params.symbol; |
| | | // let symbol = this.$route.params.symbol; |
| | | let symbol = getStorage("symbol"); |
| | | let catchSymbol = getStorage("symbol"); |
| | | if (!symbol && catchSymbol) { |
| | | symbol = catchSymbol; |
| | |
| | | } |
| | | this.symbol = symbol; |
| | | this.init(symbol); |
| | | |
| | | this.currentType = this.$route.query.currentType |
| | | ? this.$route.query.currentType |
| | | : "long"; |
| | | }, |
| | | // beforeRouteEnter(to, from, next) { |
| | | // let { params: { symbol }, query: { selectIndex } } = to |
| | |
| | | this.closeSocket(); |
| | | this.clearTimer(); |
| | | }, |
| | | activated() { |
| | | this.currentType = this.$route.query.currentType |
| | | ? this.$route.query.currentType |
| | | : "long"; |
| | | }, |
| | | // activated() { |
| | | |
| | | // }, |
| | | beforeDestroy() { |
| | | this.closeSocket(); |
| | | // this.clearTimeout(true) |