Skip to content

Commit

Permalink
v2.14.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Dooy committed Jan 18, 2024
1 parent 94d2b14 commit b79699d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/views/mj/mjText.vue
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,15 @@ const getIndexName= (arr:any[], ib:any )=> {
return `${arr[i].emoji} ${ib.n}`;
}
const load = async ()=>{
const load = async (isFlash=false )=>{
changCustom();
if(!chat.value.mjID) return ;
let key= 'img:'+chat.value.mjID;
try {
if(chat.value.opt?.imageUrl){
//await loadImg(chat.value.opt?.imageUrl);
let base64 = await localGet(key );
if(!base64) {
if(!base64 || isFlash ) {
const ubase64= await url2base64(chat.value.opt?.imageUrl ,key );
base64= ubase64.base64;
mlog('图片已保存>>', ubase64.key )
Expand All @@ -200,7 +200,7 @@ watch(()=>homeStore.myData.act,(n)=>{
return ;
}
st.value.isLoadImg=false;
load();
load( true );
if( !actData.noShow ) ms.success( t('mj.success1'));
}
})
Expand Down

0 comments on commit b79699d

Please sign in to comment.