修复商户Id读取及保存
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user