Files
xk-doctor-wx/utils/formatStoreNameWithHu.js
李琦 cb290f3e95 fix(login): 密码登录补充密码非空前端校验
- doctor-login submitLogin 增加「请输入密码」前置校验,
  与 getCode 一致,避免空密码误触发登录请求
- 配合后端 service_user 空密码回退 PC 医生/药师密码校验
2026-07-19 16:08:23 +08:00

13 lines
390 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* 在线处方诊所名追加「is_online 为 1/2/3线下 0 不加
*/
export function formatStoreNameWithHu(storeName, isOnline) {
const name = String(storeName || '').trim()
if (!name) return ''
const online = Number(isOnline)
if (online === 1 || online === 2 || online === 3) {
return name.endsWith('(互)') ? name : `${name}(互)`
}
return name
}