File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -152,20 +152,17 @@ export default Vue.extend({
152
152
// if requiring to go to another route, then we
153
153
// let the QTabs route watcher do its job,
154
154
// otherwise directly select this
155
+ let failed
155
156
const reqId = sameInternalRoute === true
156
157
? ( this . $tabs . avoidRouteWatcher = uid ( ) )
157
158
: null
158
159
159
160
return this . $router [ replace === true ? 'replace' : 'push' ] ( resolvedLink . location )
160
- . then ( ( ) => {
161
- if ( reqId === this . $tabs . avoidRouteWatcher ) {
162
- this . $tabs . __updateModel ( { name : this . name } )
163
- }
164
- } )
165
- . catch ( ( ) => { } )
161
+ . catch ( ( ) => { failed = true } )
166
162
. finally ( ( ) => {
167
163
if ( reqId === this . $tabs . avoidRouteWatcher ) {
168
164
this . $tabs . avoidRouteWatcher = false
165
+ failed !== true && this . $tabs . __updateModel ( { name : this . name } )
169
166
}
170
167
} )
171
168
}
You can’t perform that action at this time.
0 commit comments