Commit a43165b8 authored by Allen Bai's avatar Allen Bai

feat: 测试环境支持

parent 388dc28f
......@@ -69,6 +69,8 @@ type IPCFooterOptions = {
footerStyles?: Optional<CSSStyleDeclaration>
/** 页脚内链接的样式 */
boardStyles?: Optional<CSSStyleDeclaration>
/** 是否测试 */
isTest?: boolean
}
function addStyles(ele: HTMLElement, styles: Optional<CSSStyleDeclaration> = {}) {
......@@ -120,6 +122,10 @@ async function mountIPCFooter(opts: IPCFooterOptions = {}) {
console.log('备案号获取失败')
}
if (opts.isTest) {
IPCNumberString = '测试环境的 IPC-123'
}
if (!IPCNumberString) {
currentTaskId = null
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment