You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
680 B
Vue

<template>
<view class="p-home-index g_flex_column_center">
<view>
<view class="g_mb_24">
<g-button btnText='脚本Demo' @clickBtn='goChat("demo")' />
</view>
<view class="g_mb_24">
<g-button btnText='大模型Demo' @clickBtn='goChat("ai")' />
</view>
<view class="g_mb_24">
<g-button btnText='纯文本大模型Demo' @clickBtn='goChat("ai-text")' />
</view>
</view>
</view>
</template>
<script>
export default{
methods:{
goChat($type){
uni.navigateTo({
url:'/pages/message/child/chat?type=' + $type
})
}
}
}
</script>
<style lang="less">
.p-home-index{
min-height: 100vh;
background-color: #f5f5f5;
}
</style>