将长链接剥离出来

This commit is contained in:
gyq
2024-07-10 10:24:45 +08:00
parent d101ecea41
commit 91670a440b
6 changed files with 220 additions and 379 deletions

View File

@@ -131,6 +131,8 @@ import useStorage from '@/utils/useStorage'
import { useRouter } from "vue-router";
import { bySubType } from "@/api/device";
import { useUser } from "@/store/user.js";
import { useSocket } from "@/store/socket.js";
const socket = useSocket();
const store = useUser();
@@ -163,7 +165,7 @@ function getPrintList() {
ipcRenderer.send("getPrintList");
ipcRenderer.on("printList", (event, arg) => {
localPrintList.value = arg;
console.log(localPrintList.value);
// console.log(localPrintList.value);
});
}
@@ -237,6 +239,7 @@ const exit = async () => {
}, 1000);
loading.value = false;
}
socket.close()
} catch (error) {
loading.value = false;
}