cnbloglabs / awescnb

快速构建、安装、切换博客园皮肤
https://www.yuque.com/awescnb
MIT License
212 stars 48 forks source link

reacg的favicon网站Tab图标、title都不生效,qrcode概率性加载不出来 #25

Open smallersoup opened 2 years ago

smallersoup commented 2 years ago

博客地址:https://www.cnblogs.com/liabio/

问题一

qrcode概率性加载不出来

配置如下,省略了一些和该问题不相关的配置:

<script src="https://guangzan.gitee.io/awescnb/index.js"></script>
<script>
 const config = {
    theme: {
      name: 'reacg',
      log: true,
      avatar: 'https://coderaction.oss-cn-beijing.aliyuncs.com/blog/cloudnative.jpeg',
      favicon: 'https://coderaction.oss-cn-beijing.aliyuncs.com/blog/cloudnative.jpeg',
      title: '小碗汤的博客',
      headerBackground: 'https://coderaction.oss-cn-beijing.aliyuncs.com/mm2.jpeg'
    },
    qrcode: {
      enable: true,
      img: 'https://coderaction.oss-cn-beijing.aliyuncs.com/miniprog/mall/g3khctwrti8qxl02wrgu.jpg',
      desc: 'xxx',
    },
  };
  $.awesCnb(config)
</script>

有时间帮忙看下哈:多刷新几次,有时候二维码出不来: image

怀疑和这个错误有关系: image

问题二

配置了favicon、title不生效

image
guangzan commented 5 months ago

所有配置都可以在这里查看哈 https://github.com/cnbloglabs/options/blob/main/src/index.ts#L274