Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
case 'navigate':
router.navigateTo({url: this.url});
break;
case 'redirect':
router.redirectTo({url: this.url});
break;
case 'switchTab':
router.switchTab({url: this.url});
break;
// case 'reLaunch':
// break;
case 'navigateBack':
let delta = this.delta;
let opts;
delta && (opts = {delta});
router.navigateBack(opts);
break;
default:
break;
}
this.$emit('click', e);
}
}
onClick(e) {
switch (this.openType) {
case 'navigate':
router.navigateTo({url: this.url});
break;
case 'redirect':
router.redirectTo({url: this.url});
break;
case 'switchTab':
router.switchTab({url: this.url});
break;
// case 'reLaunch':
// break;
case 'navigateBack':
let delta = this.delta;
let opts;
delta && (opts = {delta});
router.navigateBack(opts);
break;
default:
break;
}
this.$emit('click', e);
}
}
onClick(e) {
switch (this.openType) {
case 'navigate':
router.navigateTo({url: this.url});
break;
case 'redirect':
router.redirectTo({url: this.url});
break;
case 'switchTab':
router.switchTab({url: this.url});
break;
// case 'reLaunch':
// break;
case 'navigateBack':
let delta = this.delta;
let opts;
delta && (opts = {delta});
router.navigateBack(opts);
break;
default:
onClick(e) {
switch (this.openType) {
case 'navigate':
router.navigateTo({url: this.url});
break;
case 'redirect':
router.redirectTo({url: this.url});
break;
case 'switchTab':
router.switchTab({url: this.url});
break;
// case 'reLaunch':
// break;
case 'navigateBack':
let delta = this.delta;
let opts;
delta && (opts = {delta});
router.navigateBack(opts);
break;
default:
break;
}
mounted() {
router._initRouterInstance(this.$router);
},