Commit 79d47fdc authored by Allen Bai's avatar Allen Bai

feat: 预发备案信息写死

parent cb2ce54e
......@@ -80,8 +80,6 @@ type IPCFooterOptions = {
footerStyles?: Optional<CSSStyleDeclaration>
/** 页脚内链接的样式 */
boardStyles?: Optional<CSSStyleDeclaration>
/** 是否测试 */
isTest?: boolean
/** 运行环境 */
env?: 'test' | 'pre' | undefined
}
......@@ -135,6 +133,12 @@ async function mountIPCFooter(opts: IPCFooterOptions = {}) {
console.log('备案号获取失败')
}
// 预发环境的接口取不到ipc备案信息
// 所以,预发的备案信息写死
if (opts.env == 'pre') {
IPCNumberString = '预发IPC备案号-写死'
}
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