✨ 礼花特效、重启修复
This commit is contained in:
parent
09c591b24b
commit
44088af063
@ -12,5 +12,6 @@ export const initCommonApi = () => {
|
|||||||
|
|
||||||
ipcMain.on("common.relaunch", () => {
|
ipcMain.on("common.relaunch", () => {
|
||||||
app.relaunch();
|
app.relaunch();
|
||||||
|
app.quit();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -66,7 +66,7 @@
|
|||||||
"vue-router": "^4.2.4",
|
"vue-router": "^4.2.4",
|
||||||
"vue-tsc": "^2.0.22",
|
"vue-tsc": "^2.0.22",
|
||||||
"vue-types": "^5.1.1",
|
"vue-types": "^5.1.1",
|
||||||
"uuid": "^10.0.0"
|
"canvas-confetti": "^1.9.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@iarna/toml": "^2.2.5",
|
"@iarna/toml": "^2.2.5",
|
||||||
@ -77,6 +77,7 @@
|
|||||||
"isbinaryfile": "4.0.10",
|
"isbinaryfile": "4.0.10",
|
||||||
"js-base64": "^3.7.7",
|
"js-base64": "^3.7.7",
|
||||||
"tar": "^6.2.0",
|
"tar": "^6.2.0",
|
||||||
"unused-filename": "^4.0.1"
|
"unused-filename": "^4.0.1",
|
||||||
|
"uuid": "^10.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ import { useDebounceFn } from "@vueuse/core";
|
|||||||
import { clone } from "@/utils/clone";
|
import { clone } from "@/utils/clone";
|
||||||
import { Base64 } from "js-base64";
|
import { Base64 } from "js-base64";
|
||||||
import IconifyIconOffline from "@/components/IconifyIcon/src/iconifyIconOffline";
|
import IconifyIconOffline from "@/components/IconifyIcon/src/iconifyIconOffline";
|
||||||
|
import confetti from "canvas-confetti/src/confetti.js";
|
||||||
defineComponent({
|
defineComponent({
|
||||||
name: "Config"
|
name: "Config"
|
||||||
});
|
});
|
||||||
@ -219,7 +219,14 @@ onMounted(() => {
|
|||||||
ipcRenderer.on("Config.importConfig.hook", (event, args) => {
|
ipcRenderer.on("Config.importConfig.hook", (event, args) => {
|
||||||
const { success, data } = args;
|
const { success, data } = args;
|
||||||
if (success) {
|
if (success) {
|
||||||
ElMessageBox.alert("导入成功 请重启软件", `提示`, {
|
// 礼花
|
||||||
|
confetti({
|
||||||
|
zIndex: 12002,
|
||||||
|
particleCount: 200,
|
||||||
|
spread: 70,
|
||||||
|
origin: { y: 0.6 }
|
||||||
|
});
|
||||||
|
ElMessageBox.alert("🎉 恭喜你,导入成功 请重启软件", `提示`, {
|
||||||
closeOnClickModal: false,
|
closeOnClickModal: false,
|
||||||
showClose: false,
|
showClose: false,
|
||||||
confirmButtonText: "立即重启"
|
confirmButtonText: "立即重启"
|
||||||
|
Loading…
Reference in New Issue
Block a user