chats.js 653 B

1234567891011121314151617181920212223242526272829303132
  1. /**
  2. * Created by xw on 2024/07/23.
  3. */
  4. const cmChats = new Vue({
  5. el:"#caimei-chat-content",
  6. mixins: [cmAiMixins],
  7. data() {
  8. },
  9. computed: {
  10. },
  11. methods: {
  12. handleClickIndex(){// 跳转首页
  13. window.open('/index.html')
  14. }
  15. },
  16. created () {
  17. },
  18. mounted () {
  19. if(globalUserData){
  20. this.clubName = globalUserData.name
  21. this.chatParams.userId = this.chatHistoryParams.userId = globalUserData.userId;
  22. this.chatParams.question = ''
  23. this.getChatHistory()
  24. }else{
  25. window.location.href = '/login.html'
  26. }
  27. }
  28. });