|
|
@ -29,7 +29,7 @@ |
|
|
|
</scroll-view> |
|
|
|
</scroll-view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="text-xs items-center create" @click="sessionAddTalk"> |
|
|
|
<view class="text-xs items-center create" @click="sessionAddTalk"> |
|
|
|
<u-icon name="plus" class="mt-[15rpx]" size="40" /> |
|
|
|
<u-icon name="plus" class="mt-[20rpx]" size="40" /> |
|
|
|
<view class="create-tx">新建</view> |
|
|
|
<view class="create-tx">新建</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- <u-button |
|
|
|
<!-- <u-button |
|
|
@ -47,7 +47,7 @@ import { useAppStore } from '@/stores/app' |
|
|
|
import { useSessionList } from './useSessionList' |
|
|
|
import { useSessionList } from './useSessionList' |
|
|
|
import { useLockFn } from '@/hooks/useLockFn' |
|
|
|
import { useLockFn } from '@/hooks/useLockFn' |
|
|
|
import SessionItem from './session-item.vue' |
|
|
|
import SessionItem from './session-item.vue' |
|
|
|
import { watch,defineExpose } from 'vue' |
|
|
|
import { watch } from 'vue' |
|
|
|
const props = defineProps({ |
|
|
|
const props = defineProps({ |
|
|
|
modelValue: { |
|
|
|
modelValue: { |
|
|
|
type: Boolean |
|
|
|
type: Boolean |
|
|
@ -70,7 +70,8 @@ const { |
|
|
|
sessionEdit, |
|
|
|
sessionEdit, |
|
|
|
sessionDelete, |
|
|
|
sessionDelete, |
|
|
|
sessionClear, |
|
|
|
sessionClear, |
|
|
|
sessionActive |
|
|
|
sessionActive, |
|
|
|
|
|
|
|
getSessionLists |
|
|
|
} = useSessionList() |
|
|
|
} = useSessionList() |
|
|
|
|
|
|
|
|
|
|
|
const { lockFn: sessionAddLock, isLock } = useLockFn(async () => { |
|
|
|
const { lockFn: sessionAddLock, isLock } = useLockFn(async () => { |
|
|
@ -83,7 +84,10 @@ const sessionAddTalk=()=>{ |
|
|
|
const sessionDetail=(val)=>{ |
|
|
|
const sessionDetail=(val)=>{ |
|
|
|
emit('update:modelValue', val) |
|
|
|
emit('update:modelValue', val) |
|
|
|
} |
|
|
|
} |
|
|
|
const showPopup=()=>emit('update:modelValue', true) |
|
|
|
const showPopup=()=>{ |
|
|
|
|
|
|
|
getSessionLists() |
|
|
|
|
|
|
|
emit('update:modelValue', true) |
|
|
|
|
|
|
|
} |
|
|
|
const appStore = useAppStore() |
|
|
|
const appStore = useAppStore() |
|
|
|
watch( |
|
|
|
watch( |
|
|
|
() => appStore.getChatConfig, |
|
|
|
() => appStore.getChatConfig, |
|
|
@ -109,7 +113,7 @@ defineExpose({ |
|
|
|
} |
|
|
|
} |
|
|
|
.create{ |
|
|
|
.create{ |
|
|
|
position: fixed; |
|
|
|
position: fixed; |
|
|
|
bottom:30rpx; |
|
|
|
bottom:50rpx; |
|
|
|
right:20rpx; |
|
|
|
right:20rpx; |
|
|
|
width:130rpx; |
|
|
|
width:130rpx; |
|
|
|
height:130rpx; |
|
|
|
height:130rpx; |
|
|
|