feat: 替换了抽屉的实现方案
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
|
||||
min-width: 80px;
|
||||
background: rgba(255,255,255,0.4);
|
||||
box-shadow: 2px 2px 10px 0px rgba(0,0,0,0.1);
|
||||
box-shadow: 2px 2px 6px 0px rgba(0,0,0,0.1);
|
||||
border-radius: 4px 20px 20px 20px;
|
||||
border: 1px solid;
|
||||
border-color: #FFFFFF;
|
||||
|
||||
@@ -388,9 +388,7 @@
|
||||
console.log('chunk.toolCall:', chunk.toolCall)
|
||||
chatMsgList.value[aiMsgIndex].toolCall = chunk.toolCall
|
||||
}
|
||||
|
||||
console.log("============>", chunk.question)
|
||||
|
||||
|
||||
// 如果有问题,则设置问题
|
||||
if(chunk.question && chunk.question.length > 0) {
|
||||
chatMsgList.value[aiMsgIndex].question = chunk.question
|
||||
|
||||
@@ -1,20 +1,31 @@
|
||||
<template>
|
||||
<view class="nav-bar">
|
||||
<view class="nav-item" @click="openDrawer">
|
||||
<image src="/static/drawer_icon.png" mode="aspectFit" class="nav-item-icon"></image>
|
||||
<view class="nav-item" @click="showDrawer('showLeft')">
|
||||
<image class="nav-item-icon" src="/static/drawer_icon.png" mode="aspectFit"></image>
|
||||
</view>
|
||||
|
||||
<uni-drawer ref="showLeft" mode="left" :width="320">
|
||||
<DrawerHome @closeDrawer="closeDrawer('showLeft')" />
|
||||
</uni-drawer>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { defineEmits } from 'vue'
|
||||
import { defineEmits, ref } from 'vue'
|
||||
import DrawerHome from "@/pages/drawer/DrawerHome.vue";
|
||||
|
||||
const emits = defineEmits(['openDrawer'])
|
||||
|
||||
const openDrawer = () => {
|
||||
emits('openDrawer')
|
||||
console.log('=============打开抽屉')
|
||||
const showLeft = ref(false)
|
||||
|
||||
// 打开窗口
|
||||
const showDrawer = (e) => {
|
||||
showLeft.value.open()
|
||||
}
|
||||
// 关闭窗口
|
||||
const closeDrawer = (e) => {
|
||||
showLeft.value.close()
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<!-- :style="backgroundStyle" -->
|
||||
<view class="top-item1-left">
|
||||
<image :src="initPageImages.welcomeImageUrl"></image>
|
||||
<text>{{ currentDate }} 多云 -3~6℃ ss </text>
|
||||
<text>{{ currentDate }} 多云 -3~6℃ dd </text>
|
||||
</view>
|
||||
<view class="top-item1-right">
|
||||
<image :src="initPageImages.logoImageUrl"></image>
|
||||
|
||||
Reference in New Issue
Block a user