# DebugPopup
The debug panel can be used to switch backend environments, clear caches, etc.
In the official version of H5 and WeChat Mini Program, it will not be displayed by default, and can be forced to display by setting force-show
.
The official environment of WeChat Mini Program is determined by wx.getAccountInfoSync().miniProgram.envVersion (opens new window).
# Import
import PressDebugPopup from '@tencent/press-plus/press-debug-popup/press-debug-popup';
export default {
components: {
PressDebugPopup,
}
}
# Code demonstration
# Basic usage
<!-- #ifdef MP -->
<PressDebugPopup />
<!-- #endif -->
# API
# Props
Parameter | Description | Type | Default value |
---|---|---|---|
text | Entry display name | string | Y |
force-show | Whether to force display | boolean | false |
other-buttons | Button list | array | - |
hook-test-net | Whether to rewrite window.isTestNet logic | boolean | true |