mirror of https://github.com/chaitin/PandaWiki.git
pref(fe/admin): 设置默认tab为门户网站
This commit is contained in:
parent
984141343e
commit
c4484849ac
|
|
@ -64,6 +64,14 @@ export const AppType = {
|
|||
label: '问答机器人 API',
|
||||
icon: 'icon-Wendajiqiren',
|
||||
},
|
||||
10: {
|
||||
label: '企业微信智能机器人',
|
||||
icon: 'icon-qiyeweixinjiqiren',
|
||||
},
|
||||
11: {
|
||||
label: 'Lark 机器人',
|
||||
icon: 'icon-feishujiqiren',
|
||||
},
|
||||
};
|
||||
|
||||
export const AnswerStatus = {
|
||||
|
|
|
|||
|
|
@ -387,7 +387,7 @@ const Content = () => {
|
|||
<Stack
|
||||
direction={'row'}
|
||||
alignItems={'center'}
|
||||
sx={{ px: 2, lineHeight: '35px' }}
|
||||
sx={{ pr: 2, pl: 6.5, lineHeight: '35px' }}
|
||||
>
|
||||
<Checkbox
|
||||
sx={{
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ const CardRobotLark = ({
|
|||
|
||||
return (
|
||||
<SettingCardItem
|
||||
title='飞书国际版机器人'
|
||||
title='Lark 机器人'
|
||||
isEdit={isEdit}
|
||||
onSubmit={onSubmit}
|
||||
more={{
|
||||
|
|
@ -98,7 +98,7 @@ const CardRobotLark = ({
|
|||
text: '使用方法',
|
||||
}}
|
||||
>
|
||||
<FormItem label='飞书国际版机器人'>
|
||||
<FormItem label='Lark 机器人'>
|
||||
<Controller
|
||||
control={control}
|
||||
name='is_enabled'
|
||||
|
|
|
|||
|
|
@ -17,18 +17,18 @@ import CardSecurity from './component/CardSecurity';
|
|||
import CardWeb from './component/CardWeb';
|
||||
|
||||
const SettingTabs: { label: string; id: string }[] = [
|
||||
{ label: '后台信息', id: 'backend-info' },
|
||||
{ label: '门户网站', id: 'portal-website' },
|
||||
{ label: 'AI 机器人', id: 'robot' },
|
||||
{ label: '问答设置', id: 'ai-setting' },
|
||||
{ label: '反馈设置', id: 'feedback' },
|
||||
{ label: '安全设置', id: 'security' },
|
||||
{ label: '访问控制', id: 'backend-info' },
|
||||
];
|
||||
|
||||
const Setting = () => {
|
||||
const { kb_id } = useAppSelector(state => state.config);
|
||||
const [searchParams, setSearchParams] = useURLSearchParams();
|
||||
const activeTab = searchParams.get('tab') || 'backend-info';
|
||||
const activeTab = searchParams.get('tab') || 'portal-website';
|
||||
const [kb, setKb] = useState<DomainKnowledgeBaseDetail | null>(null);
|
||||
const [url, setUrl] = useState<string>('');
|
||||
const [info, setInfo] = useState<DomainAppDetailResp>();
|
||||
|
|
|
|||
Loading…
Reference in New Issue