修复商户Id读取及保存

This commit is contained in:
2024-10-19 16:03:12 +08:00
parent 28e7ce4015
commit e82029456e
11 changed files with 31 additions and 21 deletions
+3 -1
View File
@@ -103,7 +103,7 @@
import type { Link } from '@/api/cms/link/model';
import { ItemType } from 'ele-admin-pro/es/ele-image-upload/types';
import { uploadFile } from '@/api/system/file';
import { getDictionaryOptions } from '@/utils/common';
import { getDictionaryOptions, getMerchantId } from "@/utils/common";
import { FileRecord } from '@/api/system/file/model';
import { Navigation } from '@/api/cms/navigation/model';
@@ -143,6 +143,7 @@
sortNumber: 100,
linkType: undefined,
categoryId: undefined,
merchantId: undefined,
comments: undefined
});
@@ -226,6 +227,7 @@
.then(() => {
loading.value = true;
const saveOrUpdate = isUpdate.value ? updateLink : addLink;
form.merchantId = getMerchantId();
saveOrUpdate(form)
.then((msg) => {
loading.value = false;