|
@@ -3,13 +3,15 @@ import style from "./index.module.less";
|
|
|
import Taro from "@tarojs/taro";
|
|
|
|
|
|
import { getAgents, getAgent, createAgent, } from "@/service/agent";
|
|
|
-import { TAgentItem } from '@/types/agent'
|
|
|
+
|
|
|
+import { TAgentDetail } from '@/types/agent'
|
|
|
|
|
|
export default function Index({children}) {
|
|
|
+
|
|
|
const saveAgent = async (agent: TAgentItem) => {
|
|
|
const res = await createAgent(agent)
|
|
|
console.log(res)
|
|
|
- // Taro.navigateTo({url: '/pages/agent-gen/index'})
|
|
|
+ Taro.navigateTo({url: '/pages/agent-gen/index'})
|
|
|
}
|
|
|
const test = ()=> {
|
|
|
|
|
@@ -18,28 +20,28 @@ export default function Index({children}) {
|
|
|
getAgents()
|
|
|
|
|
|
console.log('gogogo')
|
|
|
- return
|
|
|
- saveAgent({
|
|
|
- address: '浙江杭州余杭文一西路1700号',
|
|
|
- avatarUrl: 'https://cdn.wehome.cn/cmn/png/53/META-H8UKWHWU-2JNUAG2BARJF55VHU9QS3-YBQGHDAM-IW.png',
|
|
|
- email: '',
|
|
|
- enabledChatBg: false,
|
|
|
- enabledPersonalKb: false,
|
|
|
- "entId": '',
|
|
|
- "entName": '',
|
|
|
- "greeting": '',
|
|
|
- "isDefault": true,
|
|
|
- "isEnt": false,
|
|
|
- "isNewEnt": false,
|
|
|
- "isSystemVoice": true,
|
|
|
- "mobile": '18658870618',
|
|
|
- "name": 'xiaodong',
|
|
|
- "personality": '一名疯瘨的数码博主',
|
|
|
- "position": 'CEO',
|
|
|
- "qrCodeUrl": '',
|
|
|
- "questionGuides": ['想要了解相机?', '想要了解手机?'],
|
|
|
- // "voice": ''
|
|
|
- })
|
|
|
+ // return
|
|
|
+ // saveAgent({
|
|
|
+ // address: '浙江杭州余杭文一西路1700号',
|
|
|
+ // avatarUrl: 'https://cdn.wehome.cn/cmn/png/53/META-H8UKWHWU-2JNUAG2BARJF55VHU9QS3-YBQGHDAM-IW.png',
|
|
|
+ // email: '',
|
|
|
+ // enabledChatBg: false,
|
|
|
+ // enabledPersonalKb: false,
|
|
|
+ // "entId": '',
|
|
|
+ // "entName": '',
|
|
|
+ // "greeting": '',
|
|
|
+ // "isDefault": true,
|
|
|
+ // "isEnt": false,
|
|
|
+ // "isNewEnt": false,
|
|
|
+ // "isSystemVoice": true,
|
|
|
+ // "mobile": '18658870618',
|
|
|
+ // "name": 'xiaodong',
|
|
|
+ // "personality": '一名疯瘨的数码博主',
|
|
|
+ // "position": 'CEO',
|
|
|
+ // "qrCodeUrl": '',
|
|
|
+ // "questionGuides": ['想要了解相机?', '想要了解手机?'],
|
|
|
+ // // "voice": ''
|
|
|
+ // })
|
|
|
|
|
|
}
|
|
|
|
|
@@ -63,7 +65,7 @@ export default function Index({children}) {
|
|
|
<View>3.你的内容,一页呈现</View>
|
|
|
</View>
|
|
|
<View className="button-rounded-big" onClick={go}>创建智能体</View>
|
|
|
- <View className="button-rounded-big" onClick={test}>test</View>
|
|
|
+ {/* <View className="button-rounded-big" onClick={test}>test</View> */}
|
|
|
</View>
|
|
|
</View>
|
|
|
</View>
|