Parcourir la source

Merge branch 'master_g' of United_Software/k_online_ui into master

Amanda Gao il y a 2 mois
Parent
commit
d4969cd709

+ 1 - 2
src/auto-imports.d.ts

@@ -3,7 +3,6 @@
 // @ts-nocheck
 // noinspection JSUnusedGlobalSymbols
 // Generated by unplugin-auto-import
-// biome-ignore lint: disable
 export {}
 declare global {
   const $api: typeof import('@/api/index')['default']
@@ -69,6 +68,6 @@ declare global {
 // for type re-export
 declare global {
   // @ts-ignore
-  export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
+  export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
   import('vue')
 }

+ 0 - 1
src/components/AIRobot/src/AIRobot.vue

@@ -129,7 +129,6 @@ onMounted(() => {
   if(localStorage.getItem('userInfo') != null) {
     AIIconVisible.value = true
   }
-  AIRobotInit()
   emitter.on('login-success', isShowLogin)
   emitter.on('login-out', Logout)
   emitter.on('checkPrompt', Logout)

+ 2 - 1
src/views/AIRobotChat/src/components/AIQuestions.vue

@@ -1,5 +1,6 @@
 <script setup lang="ts">
 import { ref, onMounted } from 'vue'
+import emitter from '@/utils/bus'
 
 const props = defineProps<{
   modalSize: String
@@ -95,7 +96,7 @@ const generatePages = () => {
   pages.value = result.filter((p) => p.row1.length > 0)
 }
 onMounted(() => {
-  AIRobotInit()
+  emitter.on('login-success', AIRobotInit)
 })
 
 defineExpose({