chore:名片样式更改
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user