fix: BUG修改

This commit is contained in:
kun 2024-02-19 18:22:15 +08:00
parent d313d9fc2e
commit 09493ae652
3 changed files with 4 additions and 4 deletions

View File

@ -2,11 +2,11 @@
NODE_ENV = 'development' NODE_ENV = 'development'
# 本地环境接口地址(/api/index.ts文件中使用) # 本地环境接口地址(/api/index.ts文件中使用)
VITE_API_URL = 'http://192.168.34.155:6677' # VITE_API_URL = 'http://192.168.34.155:6677'
# VITE_API_URL = 'http://183.63.230.59:6090' # VITE_API_URL = 'http://183.63.230.59:6090'
# VITE_API_URL = 'http://2xliv7gs.shenzhuo.vip:55296' # VITE_API_URL = 'http://2xliv7gs.shenzhuo.vip:55296'
VITE_WPAPI_URL = "http://jxjzw.zhgdyun.com:8081" VITE_WPAPI_URL = "http://jxjzw.zhgdyun.com:8081"
# VITE_API_URL = "http://jxjzw.zhgdyun.com:9013" VITE_API_URL = "http://jxjzw.zhgdyun.com:9013"
# 上传 # 上传
# VITE_ULD_API_URL = 'http://192.168.34.155:8012/onlinePreview?url=' # VITE_ULD_API_URL = 'http://192.168.34.155:8012/onlinePreview?url='

View File

@ -347,7 +347,7 @@ const saveItem = async (formEl: FormInstance | undefined, form: any) => {
if (!formEl) return; if (!formEl) return;
await formEl.validate(async (valid, fields) => { await formEl.validate(async (valid, fields) => {
if (valid) { if (valid) {
if (!store.enterpriseType.includes(1)) { if (store.enterpriseType && !store.enterpriseType.includes(1)) {
delete form.roleType; delete form.roleType;
} }
if (form.roleId) { if (form.roleId) {

View File

@ -391,7 +391,7 @@ const saveItem = async (formEl: FormInstance | undefined, form: any) => {
if (!formEl) return; if (!formEl) return;
await formEl.validate(async (valid, fields) => { await formEl.validate(async (valid, fields) => {
if (valid) { if (valid) {
if (!store.enterpriseType.includes(1)) { if (store.enterpriseType && !store.enterpriseType.includes(1)) {
delete form.accountType; delete form.accountType;
} }
if (form.userId) { if (form.userId) {