(idx)
| 181 | } |
| 182 | |
| 183 | closeLeft(idx) { |
| 184 | const originPath = this.current?.path |
| 185 | this._tabs.splice(0, idx) |
| 186 | if (!originPath || this._findIndexByPath(originPath) === -1) { |
| 187 | this.switch(0) |
| 188 | } else { |
| 189 | this.switchByPath(originPath) |
| 190 | } |
| 191 | } |
| 192 | |
| 193 | closeRight(idx) { |
| 194 | const originPath = this.current?.path |
no test coverage detected