✍typecho后台js报错

李志 2019-11-23 AM 1052℃ 0条

Cgo8PFTUYbWAVkigAABleU3nDOM593.png

Uncaught TypeError: Cannot read property 'available' of null

安装完typecho最新版本(1.1-17.10.30-release)后台js报错
mark
看了下是检测版本请求返回空
mark
在151行添加非空判断如下

if(!!o){
    applyUpdate(o);
    cache.setItem('update', resp.responseText);
}
标签: typecho

非特殊说明,本博所有文章均为博主原创。

评论啦~