|
@@ -34,10 +34,10 @@ const AvatarMouseLeave = () => {
|
|
|
AIRobotHoverVisible.value = false
|
|
AIRobotHoverVisible.value = false
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-const emit = defineEmits(['AvatarClick', 'handelClickAIDefault','handelclickaiinit'])
|
|
|
|
|
|
|
+const emit = defineEmits(['AvatarClick', 'handelClickAIDefault', 'handelclickaiinit'])
|
|
|
// 点击AIRobot图标
|
|
// 点击AIRobot图标
|
|
|
const AvatarClick = () => {
|
|
const AvatarClick = () => {
|
|
|
- if(clicked.value == false) {
|
|
|
|
|
|
|
+ if (clicked.value == false) {
|
|
|
emit('handelclickaiinit')
|
|
emit('handelclickaiinit')
|
|
|
}
|
|
}
|
|
|
clicked.value = true
|
|
clicked.value = true
|
|
@@ -126,7 +126,7 @@ const handelClick = (item: any) => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
- if(localStorage.getItem('userInfo') != null) {
|
|
|
|
|
|
|
+ if (localStorage.getItem('userInfo') != null) {
|
|
|
AIIconVisible.value = true
|
|
AIIconVisible.value = true
|
|
|
}
|
|
}
|
|
|
emitter.on('login-success', isShowLogin)
|
|
emitter.on('login-success', isShowLogin)
|
|
@@ -158,7 +158,7 @@ defineExpose({
|
|
|
<div class="dialogue_title">Hi! I'm your Freight Assistant, always on call</div>
|
|
<div class="dialogue_title">Hi! I'm your Freight Assistant, always on call</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="flex_end">
|
|
<div class="flex_end">
|
|
|
- <div class="dialogue_content" style="box-shadow: -10px 10px 24px rgba(58, 0, 78, 0.15);">
|
|
|
|
|
|
|
+ <div class="dialogue_content" style="box-shadow: -10px 10px 24px rgba(58, 0, 78, 0.15)">
|
|
|
<div class="dialogue_content_title">
|
|
<div class="dialogue_content_title">
|
|
|
<div class="dialogue_title_left">
|
|
<div class="dialogue_title_left">
|
|
|
<img src="../image/icon_faq_b@2x.png" width="24px" />
|
|
<img src="../image/icon_faq_b@2x.png" width="24px" />
|