代码优化

This commit is contained in:
BianLzhaoMin 2024-12-09 17:27:43 +08:00
parent 0277edbe2d
commit 6da92a3154
2 changed files with 5 additions and 4 deletions

4
env/.env.dev vendored
View File

@ -8,9 +8,9 @@ VITE_API_URL = '/proxyApi'
# VITE_proxyTarget = 'http://10.40.92.74:8080' #盛旭
# VITE_proxyTarget = 'http://192.168.2.246:28080' # 马帅
VITE_proxyTarget = 'http://192.168.2.127:28080' # 梁超
# VITE_proxyTarget = 'http://192.168.2.127:28080' # 梁超
# VITE_proxyTarget = 'http://36.33.26.201:17788/proxyApi' # 测试服务
# VITE_proxyTarget = 'http://192.168.0.244:28580' # 测试服务
VITE_proxyTarget = 'http://192.168.0.244:28580' # 测试服务
# VITE_proxyTarget = 'http://192.168.2.129:18080' # 马帅j
# VITE_proxyTarget = 'http://10.40.92.185:9206' # 赵福海 ( 设备类型)

View File

@ -51,8 +51,9 @@ if (userStore.companyList.length === 0) {
companyList.value = userStore.companyList
}
if (userStore.goodsClassList.length === 0) {
getGoodsClassList()
classList.value = userStore.goodsClassList
getGoodsClassList().then(() => {
classList.value = userStore.goodsClassList
})
} else {
classList.value = userStore.goodsClassList
}