You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<template>
|
|
|
|
<view class="content">
|
|
|
|
<GPT :agentId="agentId"></GPT>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import GPT from '@/components/GPT/index.vue'
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
GPT,
|
|
|
|
},
|
|
|
|
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
agentId:''
|
|
|
|
}
|
|
|
|
},
|
|
|
|
onLoad(option) {
|
|
|
|
if(option){
|
|
|
|
this.agentId = option.id
|
|
|
|
}
|
|
|
|
wx.hideShareMenu()
|
|
|
|
const app = getApp();
|
|
|
|
const bgMusic = app.globalData.bgMusic;
|
|
|
|
bgMusic.pause();
|
|
|
|
|
|
|
|
},
|
|
|
|
onLaunch: options => {
|
|
|
|
this.options = options
|
|
|
|
},
|
|
|
|
onShow() {
|
|
|
|
|
|
|
|
console.log('【init message connect type------>】', );
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
},
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
.content {
|
|
|
|
height: 100vh;
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|