Commit 8db1edca authored by Allen Bai's avatar Allen Bai

feat: 无备案号时,不显示

parent 67bdb687
......@@ -39,7 +39,7 @@ function request(option) {
function getRequestUrl() {
// 如果有测试链接 就用测试的链接
return window.localStorage.getItem('__ipc_test_url__') || 'https://activity.tuiatest.cn/land/getIcpInfo'
return window.localStorage.getItem('__ipc_test_url__') || 'https://activity.tuiapre.cn/land/getIcpInfo'
}
function getIPCByDomain(domain: string) {
......@@ -120,13 +120,18 @@ async function mountIPCFooter(opts: IPCFooterOptions = {}) {
console.log('备案号获取失败')
}
if (!IPCNumberString) {
currentTaskId = null
return
}
const IPCFooter = document.createElement('div')
const IPCBoard = document.createElement('a')
IPCFooter.id = '__IPC_footer__'
IPCBoard.id = '__IPC_board__'
addStyles(IPCFooter, { ...defaultFooterStyles, ...(opts.footerStyles || {}) })
addStyles(IPCBoard, { ...defaultBoardStyles, ...(opts.boardStyles || {}) })
IPCBoard.innerText = (IPCNumberString as string) || 'IPC备-'
IPCBoard.innerText = (IPCNumberString as string) || '' // || 'IPC备-'
IPCBoard.href = 'https://beian.miit.gov.cn/#/Integrated/index'
IPCFooter.appendChild(IPCBoard)
......
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