Skip to content

Commit

Permalink
2.12.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Dooy committed Dec 11, 2023
1 parent 5c3d479 commit 33c59c8
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 11 deletions.
6 changes: 6 additions & 0 deletions changlog.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# 功能升级日志
## 2.12.6
- 🐞 修复:`经常出现“新建聊天框”遮挡对话框的情况 ` #13
- 🐞 修复:当GPTS在绘画窗口,切换不成功
- 🐞 修复:分页载入GPTs计数出现的问题

## 2.12.5
- 🔨 优化:丰富 GPTS 内容,可以搜索
- 😄 新增:前端UI 设置 上传文件入口 #11
- 🐞 修复:`经常出现“新建聊天框”遮挡对话框的情况 ` #13


## 2.12.4
- 😄 新增 dall-e-2模型
- 🐞 修复:上传错误提示为空
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chatgpt-web-midjourney-proxy",
"version": "2.12.5",
"version": "2.12.6",
"private": false,
"description": "ChatGPT Web Midjourney Proxy",
"author": "Dooy <[email protected]>",
Expand Down
18 changes: 13 additions & 5 deletions src/views/mj/aiGptsCom.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
<script setup lang="ts">
import { myFetch, gptsType, mlog } from '@/api';
import { homeStore,gptConfigStore } from '@/store';
import { homeStore,gptConfigStore,useChatStore } from '@/store';
import { ref,computed ,watch } from 'vue';
import { useMessage ,NButton,NImage,NTag} from 'naive-ui';
import { SvgIcon } from '@/components/common';
import { useRouter } from 'vue-router';
const router = useRouter()
const ms = useMessage();
const chatStore = useChatStore()
const emit = defineEmits(['close','toq']);
const pp= defineProps<{q:string}>( );
//const gptsList= ref<gptsType[]>([]);
Expand All @@ -26,6 +29,8 @@ const go= async ( item: gptsType)=>{
const gptUrl= `https://gpts.ddaiai.com/open/gptsapi/use`;
myFetch(gptUrl,item );
emit('close');
mlog('go local ', homeStore.myData.local );
if(homeStore.myData.local!=='Chat') router.replace({name:'Chat',params:{uuid:chatStore.active}});
}
const pageLoad= async ()=>{
Expand All @@ -35,7 +40,7 @@ const pageLoad= async ()=>{
st.value.loadPage= false;
let rz = d.data.list as gptsType[];
gptsPageList.value = rz.concat( gptsPageList.value,rz )
gptsPageList.value = rz.concat( gptsPageList.value )
}
const gptsList = computed(()=>{
let rz:gptsType[]=[];
Expand Down Expand Up @@ -68,8 +73,11 @@ defineExpose({ searchQ })

<div class="w-full h-full p-4">
<template v-if="gptsList.length>0">
<div class="flex items-center justify-start line-clamp-1 pb-4" v-if="st.tab==''">
<div class="m-1 cursor-pointer" v-for="v in tag" @click="goSearch(v)"><n-button strong secondary round size="small" type="success" >{{ v }}</n-button></div>
<div class="flex items-center justify-start line-clamp-1 pb-4" >
<div class="m-1 cursor-pointer" v-for="v in tag" @click="goSearch(v)">
<n-button strong round size="small" type="success" v-if="v==pp.q">{{ v }}</n-button>
<n-button strong secondary round size="small" type="success" v-else>{{ v }}</n-button>
</div>
</div>
<div class="grid grid-cols-1 gap-5 md:grid-cols-2 lg:grid-cols-3" >

Expand Down Expand Up @@ -102,7 +110,7 @@ defineExpose({ searchQ })
</div>
</template>
<div class="h-full flex items-center justify-center flex-col" v-else-if="st.tab=='search' && !st.search">
<div>未能找到 <b class=" text-green-400">{{st.q}}</b>相关内容, 你可以参试以下内容</div>
<div>未能找到 <b class=" text-green-400">{{st.q}}</b>相关内容, 你可尝试以下内容</div>
<div class="flex items-center justify-center flex-wrap">
<div class="m-1 cursor-pointer" v-for="v in tag" @click="goSearch(v)"><n-button strong secondary round size="small" type="success" >{{ v }}</n-button></div>
</div>
Expand Down
11 changes: 6 additions & 5 deletions src/views/mj/draw.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ const mjClose=()=>{
//handleAdd();
</script>
<template>
<div class="flex w-full h-full">
<!-- <chatIndex></chatIndex> -->

<div class="flex">
<div>
<aiSiderInput @close="mjClose" @drawSent="drawSent" :button-disabled="false"></aiSiderInput>
</div>
<main class="flex-1">
<chatIndex></chatIndex>
<!-- <drawList></drawList> -->


<main class="flex-1 overflow-hidden">
<chatIndex></chatIndex>
</main>
</div>
</template>

0 comments on commit 33c59c8

Please sign in to comment.