chore:名片样式更改

This commit is contained in:
2026-10-13 15:39:56 +08:00
parent f2619ae3b6
commit 389d87b82c
4 changed files with 342 additions and 147 deletions

View File

@@ -363,10 +363,13 @@ export default {
}));
// 新建模式走 card/create, 编辑模式走 card/update(均经 $cardApi 收口层)
// ⚠️ 必须包在 data 里: sendJson 只合并 params.data(见 common/js/http.js),
// 顶层直接挂 fields 会被丢弃 → 后端收不到 name, 报「请填写姓名」
const payload = this.isCreate
? { fields: fields }
: { card_id: this.cardId, fields: fields };
(this.isCreate ? this.$cardApi.cardCreate : this.$cardApi.cardUpdate)({
data: payload,
success: res => {
this.saving = false;
if (res.code == 0) {