diff --git a/index.html b/index.html
index 5d19ed6..ddaba6e 100644
--- a/index.html
+++ b/index.html
@@ -60,11 +60,13 @@
init() {
this.dom = document.querySelector("div[data-root=p1457912674670354432]");
- var title = this.dom.querySelector('.title');
+ if (this.dom) {
+ var title = this.dom.querySelector('.title');
- var myDate = new Date();
- var tMonth = myDate.getMonth();
- title.innerHTML = tMonth === 0 ? '12月份工资表' : tMonth + '月份工资表';
+ var myDate = new Date();
+ var tMonth = myDate.getMonth();
+ title.innerHTML = tMonth === 0 ? '12月份工资表' : tMonth + '月份工资表';
+ }
},
jumpDetails(that) {