新增预发布版本
This commit is contained in:
parent
db8c41fd16
commit
06a0d1d0fc
|
|
@ -29,7 +29,10 @@ VITE_API_KP_URL = 'https://invoice.sxczgkj.cn/api'
|
||||||
# VITE_API_URL = 'http://192.168.1.34:10589/cashier-client'
|
# VITE_API_URL = 'http://192.168.1.34:10589/cashier-client'
|
||||||
|
|
||||||
# 测试
|
# 测试
|
||||||
VITE_API_URL = 'https://cashier-client.sxczgkj.cn/cashier-client'
|
# VITE_API_URL = 'https://cashier-client.sxczgkj.cn/cashier-client'
|
||||||
|
|
||||||
|
# 预发布
|
||||||
|
VITE_API_URL = 'https://pre-cashierclient.sxczgkj.cn/cashier-client'
|
||||||
|
|
||||||
# VITE_API_URL = 'https://36z1017t45.goho.co/cashier-client'
|
# VITE_API_URL = 'https://36z1017t45.goho.co/cashier-client'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,10 @@ VITE_API_PHP_URL = 'https://czgdoumei.sxczgkj.com/index.php/api'
|
||||||
VITE_API_KP_URL = 'https://invoice.sxczgkj.cn/api'
|
VITE_API_KP_URL = 'https://invoice.sxczgkj.cn/api'
|
||||||
|
|
||||||
# 测试
|
# 测试
|
||||||
VITE_API_URL = 'https://cashier-client.sxczgkj.cn/cashier-client'
|
# VITE_API_URL = 'https://cashier-client.sxczgkj.cn/cashier-client'
|
||||||
|
|
||||||
|
# 预发布
|
||||||
|
VITE_API_URL = 'https://pre-cashierclient.sxczgkj.cn/cashier-client'
|
||||||
|
|
||||||
# VITE_API_URL = 'https://36z1017t45.goho.co/cashier-client'
|
# VITE_API_URL = 'https://36z1017t45.goho.co/cashier-client'
|
||||||
|
|
||||||
|
|
|
||||||
15849
dist-electron/main.js
15849
dist-electron/main.js
File diff suppressed because one or more lines are too long
|
|
@ -126,6 +126,8 @@ const submitHandle = () => {
|
||||||
store
|
store
|
||||||
.userlogin(form)
|
.userlogin(form)
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
|
// 登录成功后保存商户号
|
||||||
|
useStorage.set('merchantLoginAccount', form.merchantName)
|
||||||
ElMessage.success("登录成功");
|
ElMessage.success("登录成功");
|
||||||
socket.init();
|
socket.init();
|
||||||
await shopInfo.queryShopInfo()
|
await shopInfo.queryShopInfo()
|
||||||
|
|
@ -159,6 +161,11 @@ const logout = () => {
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
global.updateData(false)
|
global.updateData(false)
|
||||||
|
|
||||||
|
let merchantLoginAccount = useStorage.get('merchantLoginAccount')
|
||||||
|
if (merchantLoginAccount) {
|
||||||
|
form.merchantName = merchantLoginAccount
|
||||||
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,8 @@ import path from "path";
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig(({ command, mode }) => {
|
export default defineConfig(({ command, mode }) => {
|
||||||
const env = loadEnv(mode, process.cwd(), "");
|
const env = loadEnv(mode, process.cwd(), "");
|
||||||
|
// console.log(env.ENV);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
server: {
|
server: {
|
||||||
proxy: {
|
proxy: {
|
||||||
|
|
@ -40,7 +42,7 @@ export default defineConfig(({ command, mode }) => {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
esbuild: {
|
esbuild: {
|
||||||
drop: ["console"],
|
drop: env.ENV == "production" ? ["console"] : [],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue