English | 中文
@huolala-tech/page-spy-alipay

The SDK used in alipay miniprogram environment.
[!CAUTION]
When submitting the mini program for review, be sure to delete the SDK in the code, otherwise the review will fail.
Usage
import PageSpy from '@huolala-tech/page-spy-alipay'
const pageSpy = new PageSpy(config?: InitConfig)
InitConfig
definition
Except for the api
parameter is required, all others parameters are optional:
interface InitConfig {
api: string;
project?: string;
title?: string;
enableSSL?: boolean | null;
disabledOnProd?: boolean | null;
disabledPlugins?: (InternalPlugins | string)[];
}
type InternalPlugins =
| 'ConsolePlugin'
| 'ErrorPlugin'
| 'NetworkPlugin'
| 'StoragePlugin'
| 'SystemPlugin';
For more details of mini-program usage, please refer to Mini-Program Usage