|
|
@@ -1604,28 +1604,29 @@ function _Chat() {
|
|
|
}
|
|
|
</div>
|
|
|
<div>
|
|
|
- {
|
|
|
- appList.length > 1 ?
|
|
|
- <div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
|
|
|
- <Select
|
|
|
- style={{ width: '50%', height: 38, marginRight: 5 }}
|
|
|
- value={selectedFruit}
|
|
|
- onChange={(value: "ONLINE" | "LOCAL") => {
|
|
|
- chatStore.clearSessions();
|
|
|
- chatStore.updateCurrentSession((values) => {
|
|
|
- values.appId = globalStore.selectedAppId;
|
|
|
- });
|
|
|
- navigate({ pathname: '/newChat' });
|
|
|
- setSelectedFruit(value);
|
|
|
- chatStore.setChatMode(value);
|
|
|
- }}
|
|
|
- >
|
|
|
- {fruits.map(fruit => (
|
|
|
- <Select.Option key={fruit.id} value={fruit.id}>
|
|
|
- {fruit.name}
|
|
|
- </Select.Option>
|
|
|
- ))}
|
|
|
- </Select>
|
|
|
+
|
|
|
+ <div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
|
|
|
+ <Select
|
|
|
+ style={{ width: '100%', height: 38, marginRight: 5 }}
|
|
|
+ value={selectedFruit}
|
|
|
+ onChange={(value: "ONLINE" | "LOCAL") => {
|
|
|
+ chatStore.clearSessions();
|
|
|
+ chatStore.updateCurrentSession((values) => {
|
|
|
+ values.appId = globalStore.selectedAppId;
|
|
|
+ });
|
|
|
+ navigate({ pathname: '/newChat' });
|
|
|
+ setSelectedFruit(value);
|
|
|
+ chatStore.setChatMode(value);
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ {fruits.map(fruit => (
|
|
|
+ <Select.Option key={fruit.id} value={fruit.id}>
|
|
|
+ {fruit.name}
|
|
|
+ </Select.Option>
|
|
|
+ ))}
|
|
|
+ </Select>
|
|
|
+ {
|
|
|
+ appList.length > 1 ?
|
|
|
<Select
|
|
|
style={{ width: '100%', height: 38, marginRight: 5 }}
|
|
|
placeholder='请选择'
|
|
|
@@ -1647,10 +1648,10 @@ function _Chat() {
|
|
|
setSendStatus(false);
|
|
|
}}
|
|
|
/>
|
|
|
- </div>
|
|
|
- :
|
|
|
- null
|
|
|
- }
|
|
|
+ :
|
|
|
+ null
|
|
|
+ }
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|