How to use the okam-api-h5/src/router.navigateTo function in okam-api-h5

To help you get started, we’ve selected a few okam-api-h5 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ecomfe / okam / packages / okam-component-h5 / src / Navigator.vue View on Github external
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:

okam-api-h5

The mini program API implementation in H5

MIT
Latest version published 3 years ago

Package Health Score

52 / 100
Full package analysis