This commit is contained in:
杜恒 2021-05-28 10:23:59 +08:00
parent 49aaf5899d
commit caff4f4275
3 changed files with 3 additions and 3 deletions

View File

@ -537,7 +537,7 @@ document.addEventListener('DOMContentLoaded', () => {
constructor() { constructor() {
super(); super();
this.bvid = this.getAttribute('bvid'); this.bvid = this.getAttribute('bvid');
this.page = this.getAttribute('page') && !Number.isNaN(this.getAttribute('page')) ? this.getAttribute('page') : 1; this.page = Object.is(Number(this.getAttribute('page')), NaN) ? 1 : this.getAttribute('page');
this.render(); this.render();
} }
render() { render() {

File diff suppressed because one or more lines are too long

View File

@ -6,5 +6,5 @@ export default {
file: './js/joe.write.chunk.js', file: './js/joe.write.chunk.js',
format: 'iife' format: 'iife'
}, },
plugins: [nodeResolve(), uglify()] plugins: [nodeResolve()]
}; };