|
@@ -1,6 +1,7 @@
|
|
import { useState } from 'react';
|
|
import { useState } from 'react';
|
|
import { getGzhAccountOptionsApi } from '@src/http/api';
|
|
import { getGzhAccountOptionsApi } from '@src/http/api';
|
|
import request from '@src/http/index';
|
|
import request from '@src/http/index';
|
|
|
|
+import { GzhPlanType } from './useGzhPlanList';
|
|
|
|
|
|
interface Account {
|
|
interface Account {
|
|
id: string;
|
|
id: string;
|
|
@@ -19,7 +20,7 @@ export const useAccountOptions = () => {
|
|
setError(null);
|
|
setError(null);
|
|
const data = await request.get(getGzhAccountOptionsApi, {
|
|
const data = await request.get(getGzhAccountOptionsApi, {
|
|
params: {
|
|
params: {
|
|
- accountType
|
|
|
|
|
|
+ accountType: accountType === GzhPlanType.自动回复 ? undefined : GzhPlanType.服务号推送
|
|
}
|
|
}
|
|
});
|
|
});
|
|
setAccountOptions(data.data as Account[]);
|
|
setAccountOptions(data.data as Account[]);
|