From d9f9b9220fe5b2b62b20ad8f34036a5fbfd9b4e9 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Tue, 26 Apr 2022 13:57:45 +0800 Subject: [PATCH 1/2] V3.2.2 --- blog.config.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/blog.config.js b/blog.config.js index 19720ff9..6693a752 100644 --- a/blog.config.js +++ b/blog.config.js @@ -124,7 +124,7 @@ const BLOG = { process.env.NEXT_PUBLIC_DESCRIPTION || '这是一个由NotionNext生成的站点', // 站点描述,被notion中的页面描述覆盖 isProd: process.env.VERCEL_ENV === 'production', // distinguish between development and production environment (ref: https://vercel.com/docs/environment-variables#system-environment-variables) isProd: process.env.VERCEL_ENV === 'production' // distinguish between development and production environment (ref: https://vercel.com/docs/environment-variables#system-environment-variables) - VERSION: '3.2.1' // 版本号 + VERSION: '3.2.2' // 版本号 } module.exports = BLOG diff --git a/package.json b/package.json index 9b48294c..a71e7a2f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "notion-next", - "version": "3.2.1", + "version": "3.2.2", "homepage": "https://github.com/tangly1024/NotionNext.git", "license": "MIT", "repository": { From 7a17f7ab684ec8be148772932e474c52c8a4ee09 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Tue, 26 Apr 2022 14:40:36 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=BB=B6=E8=BF=9F=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E5=AE=A0=E7=89=A9=E6=8C=82=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Live2D.js | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/components/Live2D.js b/components/Live2D.js index 89e68301..e91a3806 100644 --- a/components/Live2D.js +++ b/components/Live2D.js @@ -23,15 +23,20 @@ export default function Live2D() { return } +/** + * 加载宠物 + */ function initLive2D() { - // 加载 waifu.css live2d.min.js waifu-tips.js - if (screen.width >= 768) { - Promise.all([ - // loadExternalResource('https://cdn.zhangxinxu.com/sp/demo/live2d/live2d/js/live2d.js', 'js') - loadExternalResource('https://cdn.jsdelivr.net/gh/stevenjoezhang/live2d-widget@latest/live2d.min.js', 'js') - ]).then((e) => { - // https://github.com/xiazeyu/live2d-widget-models - loadlive2d('live2d', BLOG.WIDGET_PET_LINK) - }) - } + setTimeout(() => { + // 加载 waifu.css live2d.min.js waifu-tips.js + if (screen.width >= 768) { + Promise.all([ + // loadExternalResource('https://cdn.zhangxinxu.com/sp/demo/live2d/live2d/js/live2d.js', 'js') + loadExternalResource('https://cdn.jsdelivr.net/gh/stevenjoezhang/live2d-widget@latest/live2d.min.js', 'js') + ]).then((e) => { + // https://github.com/xiazeyu/live2d-widget-models + loadlive2d('live2d', BLOG.WIDGET_PET_LINK) + }) + } + }, 1000) }