index-normalize-route.js 651 B

123456789101112131415161718
  1. // 自动生成的文件,请勿修改
  2. import { xmLocalStorage } from '@/common/services/storage-service'
  3. const hasHomeLogo = xmLocalStorage.getItem('homeLogo')
  4. const oldLogoTheme = document.getElementById('logo-style')
  5. const style = document.createElement('style')
  6. style.id = 'logo-style'
  7. style.type = 'text/css'
  8. style.innerText = `.title_sd-header_common{background: url(${
  9. hasHomeLogo
  10. ? 'api/oa/v1/oalogoconfig/we-open-api/downloadBackGrounImg?name=homeLogo'
  11. : require('@custom/images/logo.png')
  12. }) no-repeat center center !important}`
  13. if (oldLogoTheme) {
  14. document.head.removeChild(oldLogoTheme)
  15. }
  16. document.head.appendChild(style)