diff --git a/package.json b/package.json index 20a799b..ca7f006 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "miyoushe-emot-to-github", - "version": "0.3.5", + "version": "0.4.0", "type": "module", "description": "在github使用米游社表情包", "private": true, diff --git a/src/App.vue b/src/App.vue index 2a92e81..b29c401 100644 --- a/src/App.vue +++ b/src/App.vue @@ -14,7 +14,7 @@ useEventListener(document, "focusin", e => { if (el instanceof HTMLTextAreaElement && el.name === "comment[body]") { currentInput.value = el; } - // 解决前进后退时浏览器还原 dom 却不还原 vue app 数据状态的问题——我把旧 dom 杀了不就好了? + // 解决前进后退时浏览器还原 dom 却不还原 vue app 数据状态的问题:我把旧 dom 杀了不就好了? document.querySelectorAll(".miyoushe-emots").forEach(e => { if (!e.isSameNode(_this.value)) e.remove(); }); }); /** diff --git a/vite.config.js b/vite.config.js index 06f6862..44c37a1 100644 --- a/vite.config.js +++ b/vite.config.js @@ -28,13 +28,13 @@ export default defineConfig((config) => { build: { metaFileName: true, externalGlobals: { - vue: cdn.jsdelivr('Vue', 'dist/vue.global.prod.js'), + vue: cdn.zhimg('Vue', 'dist/vue.global.prod.js'), }, } }) ], build: { - minify: true + // minify: true } } }) \ No newline at end of file