Skip to content

Commit

Permalink
v2.19.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Dooy committed Jul 8, 2024
1 parent 5a3145f commit f8ed5ae
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Glob API URL
VITE_GLOB_API_URL=/api

VITE_APP_API_BASE_URL=http://127.0.0.1:3002
#VITE_APP_API_BASE_URL=http://www.baidu.com
#VITE_APP_API_BASE_URL=http://127.0.0.1:3002
VITE_APP_API_BASE_URL=http://192.168.31.186:3002

# Whether long replies are supported, which may result in higher API fees
VITE_GLOB_OPEN_LONG_REPLY=false
Expand Down
3 changes: 3 additions & 0 deletions changlog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# 功能升级日志

# 计划
# 2.19.3
- 🐞 修复:viggle个人上传视频无效

# 2.19.2
- 😄 新增:跳舞视频viggle模块

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.19.2",
"version": "2.19.3",
"private": false,
"description": "ChatGPT Web Midjourney Proxy",
"author": "Dooy <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"package": {
"productName": "ChatGPT-MJ",
"version": "2.19.2"
"version": "2.19.3"
},
"tauri": {
"allowlist": {
Expand Down
12 changes: 8 additions & 4 deletions src/views/viggle/dcInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import {SvgIcon} from '@/components/common'
import dcTemple from "./dcTemple.vue"
import { homeStore } from '@/store';
import { mlog, upImg } from '@/api';
import { FeedViggleTask, ViggleTemplate ,getUrl, viggleFetch } from '@/api/viggle';
import { FeedViggleTask, ViggleTemplate , viggleFetch } from '@/api/viggle';
import { t } from '@/locales';
const f= ref({ "imageID": "", "bgMode": 2, "modelInfoID": 3,"templateID": "" })
const f= ref({ "imageID": "", "bgMode": 2, "modelInfoID": 3,"templateID": "","videoID":'' })
const st= ref({isDo:false,showImg:false,q:'',imgSrc:'',vgSrc:'',vgCoverURL:''})
const useTem= ref<ViggleTemplate>()
const fsRef= ref() ;
Expand Down Expand Up @@ -41,16 +41,18 @@ const search=()=>{
}
const canPost= computed(()=>{
return f.value.templateID && f.value.imageID
return (f.value.templateID|| f.value.videoID) && f.value.imageID
})
const clear=(type:number)=>{
if(type==1){
useTem.value=undefined
f.value.templateID=''
f.value.videoID=''
}else if(type==3){
useTem.value=undefined
f.value.templateID=''
f.value.videoID=''
st.value.vgSrc=''
st.value.vgCoverURL=''
}else{
Expand All @@ -67,7 +69,8 @@ async function selectFileVideo(input:any){
mlog("d Video", d )
if(d.data ) {
if( d.data.id ) {
f.value.templateID= d.data.id
f.value.videoID= d.data.id
f.value.templateID=''
st.value.vgCoverURL= d.data.coverURL
st.value.vgSrc= d.data.url
}
Expand Down Expand Up @@ -110,6 +113,7 @@ watch(()=>homeStore.myData.act, (n)=>{
useTem.value= homeStore.myData.actData as ViggleTemplate
st.value.showImg=false
f.value.templateID= useTem.value.id
f.value.videoID= ''
}
})
Expand Down

0 comments on commit f8ed5ae

Please sign in to comment.