s
This commit is contained in:
parent
25131b0c89
commit
424c9a255d
@ -7,7 +7,6 @@ import zhCN from 'ant-design-vue/es/locale/zh_CN';
|
|||||||
|
|
||||||
const { theme, themeOverrides } = useTheme()
|
const { theme, themeOverrides } = useTheme()
|
||||||
const { language } = useLanguage()
|
const { language } = useLanguage()
|
||||||
//localStorage.setItem('token','46d71a72d8d845ad7ed23eba9bdde260e635407190c2ce1bf7fd22088e41682ea07773ec65cae8946d2003f264d55961f96e0fc5da10eb96d3a348c1664e9644e756eda7154e1af9e70d1c9d2f100823a26885ea6df3249fe619995cb79dc5dbd5ead32d43b955d6b3ce83129097bb21bb8169898f48692de4f966db140c71b85a2065acfc948561c465279fc05194a79a1115f3b00170944b6c4bd6c52ada909a075c55d18d76c2ed2175602421b34b27362a05c350733ed73382471df0a08950f7f1e812a610c17bdac82d82d54be38969f6b41201af79b8d36ef177c5b94bdd0b97501291f5dc1988d078f75b7de705d1d14bfeccd798992968b3112067a7f3a45ca750397bbfb034493e6c4bc85716867782a386cc5149e9498b0dc28fb6c6f25bf9bd92c15620ff503c3d99ca5ce5e2cbfeae539d80386e042679f0ff32')
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@ -40,4 +39,7 @@ const { language } = useLanguage()
|
|||||||
.ant-select-focused:where(.css-dev-only-do-not-override-19yxfbp).ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer) .ant-select-selector{
|
.ant-select-focused:where(.css-dev-only-do-not-override-19yxfbp).ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer) .ant-select-selector{
|
||||||
border-color: #764CF6!important;;
|
border-color: #764CF6!important;;
|
||||||
}
|
}
|
||||||
|
.n-layout-scroll-container{
|
||||||
|
padding-right: 5px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -14,19 +14,15 @@ async function bootstrap() {
|
|||||||
app.use(Antd);
|
app.use(Antd);
|
||||||
app.use(ElementPlus);
|
app.use(ElementPlus);
|
||||||
setupScrollbarStyle()
|
setupScrollbarStyle()
|
||||||
|
|
||||||
setupStore(app)
|
setupStore(app)
|
||||||
|
|
||||||
setupI18n(app)
|
setupI18n(app)
|
||||||
await setupRouter(app)
|
await setupRouter(app)
|
||||||
// 子页面中
|
// 子页面中
|
||||||
|
const origins=['https://erp.fontree.cn','http://172.16.100.93:9010']
|
||||||
window.addEventListener('message', function(event) {
|
window.addEventListener('message', function(event) {
|
||||||
if (event.origin==='http://localhost:8080'){
|
if (origins.includes(event.origin)){
|
||||||
localStorage.setItem('token',event.data)
|
localStorage.setItem('token',event.data)
|
||||||
}
|
}
|
||||||
// 可以根据需要检查event.origin是否是可信的来源
|
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
app.mount('#app')
|
app.mount('#app')
|
||||||
|
@ -377,10 +377,11 @@ const customRequest=async (file)=>{
|
|||||||
@handle-clear="handleClear"
|
@handle-clear="handleClear"
|
||||||
/>
|
/>
|
||||||
<main class="flex-1 overflow-hidden">
|
<main class="flex-1 overflow-hidden">
|
||||||
<div id="scrollRef" ref="scrollRef" class="h-full overflow-hidden overflow-y-auto">
|
<div id="scrollRef" ref="scrollRef" class="h-full overflow-hidden overflow-y-auto" >
|
||||||
<div
|
<div
|
||||||
id="image-wrapper"
|
id="image-wrapper"
|
||||||
class="w-full max-w-screen-xl m-auto dark:bg-[#101014]"
|
class="w-full max-w-screen-xl m-auto dark:bg-[#101014]"
|
||||||
|
|
||||||
:class="[isMobile ? 'p-2' : 'p-4']"
|
:class="[isMobile ? 'p-2' : 'p-4']"
|
||||||
>
|
>
|
||||||
<template v-if="!dataSources.length">
|
<template v-if="!dataSources.length">
|
||||||
|
@ -28,13 +28,13 @@ function handleEdit({ listUuid }) {
|
|||||||
}
|
}
|
||||||
const handleDeleteDebounce = ()=>{
|
const handleDeleteDebounce = ()=>{
|
||||||
sessionDetailData.deleteSession()
|
sessionDetailData.deleteSession()
|
||||||
|
sessionDetail.value=[]
|
||||||
}
|
}
|
||||||
function handleEnter({ listUuid }, isEdit, event) {
|
function handleEnter({ listUuid }, isEdit, event) {
|
||||||
event?.stopPropagation()
|
event?.stopPropagation()
|
||||||
if (event.key === 'Enter')
|
if (event.key === 'Enter')
|
||||||
chatStore.updateHistory(listUuid, { isEdit })
|
chatStore.updateHistory(listUuid, { isEdit })
|
||||||
}
|
}
|
||||||
|
|
||||||
function isActive(listUuid) {
|
function isActive(listUuid) {
|
||||||
return currentListUuid.value === listUuid
|
return currentListUuid.value === listUuid
|
||||||
}
|
}
|
||||||
@ -85,7 +85,7 @@ function isActive(listUuid) {
|
|||||||
<SvgIcon icon="ri:delete-bin-line" />
|
<SvgIcon icon="ri:delete-bin-line" />
|
||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
{{ $t('chat.deleteHistoryConfirm') }}
|
是否删除此记录?
|
||||||
</NPopconfirm>
|
</NPopconfirm>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
@ -21,19 +21,15 @@ const { isMobile } = useBasicLayout()
|
|||||||
const show = ref(false)
|
const show = ref(false)
|
||||||
|
|
||||||
const collapsed = computed(() => appStore.siderCollapsed)
|
const collapsed = computed(() => appStore.siderCollapsed)
|
||||||
|
|
||||||
async function handleAdd() {
|
async function handleAdd() {
|
||||||
await sessionDetailForSetup().createSessionStore()
|
await sessionDetailForSetup().createSessionStore()
|
||||||
|
sessionDetail.value=[]
|
||||||
await chatStore.setActive(currentListUuid.value)
|
await chatStore.setActive(currentListUuid.value)
|
||||||
/* chatStore.addHistory({ title: t('chat.newChatTitle'), uuid: Date.now(), isEdit: false })
|
|
||||||
if (isMobile.value)
|
|
||||||
appStore.setSiderCollapsed(true) */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleUpdateCollapsed() {
|
function handleUpdateCollapsed() {
|
||||||
appStore.setSiderCollapsed(!collapsed.value)
|
appStore.setSiderCollapsed(!collapsed.value)
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleClearAll() {
|
function handleClearAll() {
|
||||||
dialog.warning({
|
dialog.warning({
|
||||||
title: t('chat.deleteMessage'),
|
title: t('chat.deleteMessage'),
|
||||||
|
Loading…
Reference in New Issue
Block a user