版本更新
This commit is contained in:
parent
9fb67bd8a2
commit
458b531757
|
|
@ -1,7 +1,6 @@
|
|||
# 本地环境
|
||||
ENV = development
|
||||
|
||||
|
||||
# 正式ws
|
||||
# VITE_API_WSS = 'wss://cashier.sxczgkj.cn/client'
|
||||
|
||||
|
|
@ -32,5 +31,7 @@ VITE_API_KP_URL = 'https://invoice.sxczgkj.cn/api'
|
|||
# 测试
|
||||
VITE_API_URL = 'https://cashier-client.sxczgkj.cn/cashier-client'
|
||||
|
||||
# VITE_API_URL = 'https://36z1017t45.goho.co/cashier-client'
|
||||
|
||||
# 正式
|
||||
# VITE_API_URL = 'https://cashierclient.sxczgkj.cn/cashier-client'
|
||||
|
|
@ -19,5 +19,7 @@ VITE_API_KP_URL = 'https://invoice.sxczgkj.cn/api'
|
|||
# 测试
|
||||
VITE_API_URL = 'https://cashier-client.sxczgkj.cn/cashier-client'
|
||||
|
||||
# VITE_API_URL = 'https://36z1017t45.goho.co/cashier-client'
|
||||
|
||||
# 正式
|
||||
# VITE_API_URL = 'https://cashierclient.sxczgkj.cn/cashier-client'
|
||||
|
|
@ -15710,7 +15710,7 @@ electron.app.whenReady().then(() => {
|
|||
}
|
||||
const installExe = async (exePath) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
child_process.exec(`start ${exePath}`, (error, stdout, stderr) => {
|
||||
child_process.exec(`${exePath}`, (error, stdout, stderr) => {
|
||||
if (error) {
|
||||
reject(error);
|
||||
} else {
|
||||
|
|
@ -15762,7 +15762,6 @@ electron.app.whenReady().then(() => {
|
|||
});
|
||||
electron.ipcMain.on("getPrintList", () => {
|
||||
win.webContents.getPrintersAsync().then((res) => {
|
||||
console.log("打印机列表", res);
|
||||
win.webContents.send("printList", res);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ app.whenReady().then(() => {
|
|||
|
||||
const installExe = async (exePath) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
exec(`start ${exePath}`, (error, stdout, stderr) => {
|
||||
exec(`${exePath}`, (error, stdout, stderr) => {
|
||||
if (error) {
|
||||
reject(error);
|
||||
} else {
|
||||
|
|
@ -65,12 +65,10 @@ app.whenReady().then(() => {
|
|||
"temp-exe-file.exe"
|
||||
);
|
||||
fs.writeFileSync(tempFilePath, response.data);
|
||||
|
||||
setTimeout(() => {
|
||||
win = null;
|
||||
app.exit();
|
||||
}, 1500);
|
||||
|
||||
const installResult = await installExe(tempFilePath);
|
||||
console.log(`安装结果:${installResult}`);
|
||||
} catch (error) {
|
||||
|
|
@ -98,8 +96,7 @@ app.whenReady().then(() => {
|
|||
// 给渲染进程返回打印机列表
|
||||
ipcMain.on("getPrintList", () => {
|
||||
win.webContents.getPrintersAsync().then((res) => {
|
||||
console.log("打印机列表", res);
|
||||
|
||||
// console.log("打印机列表", res);
|
||||
win.webContents.send("printList", res);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue