Skip to content

Commit

Permalink
换了个知乎的cdn
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave-12138 committed Nov 23, 2024
1 parent 7288c45 commit 0d4bc3e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "miyoushe-emot-to-github",
"version": "0.3.5",
"version": "0.4.0",
"type": "module",
"description": "在github使用米游社表情包",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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(); });
});
/**
Expand Down
4 changes: 2 additions & 2 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
})

0 comments on commit 0d4bc3e

Please sign in to comment.