Commit 2ddd3010 authored by XieZhiXiong's avatar XieZhiXiong

chore: 替换获取商城列表接口

parent 3d53e635
......@@ -2,12 +2,13 @@
* @Author: XieZhiXiong
* @Date: 2021-06-24 14:03:34
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-09-23 16:17:02
* @LastEditTime: 2021-10-16 16:15:27
* @Description:
*/
import { FormPath, FormEffectHooks } from '@formily/antd';
import { useAsyncInitSelect } from '@/formSchema/effects/useAsyncInitSelect';
import { PublicApi } from '@/services/api';
import { GlobalConfig } from '@/global/config';
import { useBusinessEffects } from './useBusinessEffects';
import { ResponseType } from '../../../../components/MemberCheckboxGroup';
......@@ -144,8 +145,9 @@ export const createEffects = (context, actions) => {
// 初始化 适用商城数据
onFieldMount$('suitableMallTypes').subscribe(() => {
PublicApi.getManageShopAllByShopType({
shopType: `${1}`, // 企业商城
PublicApi.postManageWebShopWebAll({
siteId: GlobalConfig.site.siteInfo.id,
type: 1, // 企业商城
}).then((res) => {
if (res.code === 1000) {
const { data = [] } = res;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment