修复tost不对问题

This commit is contained in:
dragon
2024-10-25 14:08:26 +08:00
parent 898e9a7a07
commit cd279cc869
2 changed files with 6 additions and 5 deletions

View File

@@ -184,14 +184,15 @@ function getUploadToken() {
// 上传公会头像
function fileChangeF2(e) {
var file = document.querySelector('#backImageUpload2').files[0];
console.log(file);
console.log(1,file);
if (file.length == 0) {
return;
}
var fileType = file.type;
// 判断是否是动图
if (fileType == 'image/gif' || file.name.includes('.gif')) {
toastMsg(langReplace(localLang.demoModule.toastMsgText1))
toastMsg(langReplace(localLang.guildInfoSet.toastMsgText1))
console.log(11);
} else {
getToken(file, 2)
}
@@ -206,7 +207,7 @@ function fileChangeF(e) {
var fileType = file.type;
// 判断是否是动图
if (fileType == 'image/gif' || file.name.includes('.gif')) {
toastMsg(langReplace(localLang.demoModule.toastMsgText1))
toastMsg(langReplace(localLang.guildInfoSet.toastMsgText1))
} else {
getToken(file, 1)
}

View File

@@ -191,7 +191,7 @@ function fileChangeF2(e) {
var fileType = file.type;
// 判断是否是动图
if (fileType == 'image/gif' || file.name.includes('.gif')) {
toastMsg(langReplace(localLang.demoModule.toastMsgText1))
toastMsg(langReplace(localLang.guildInfoSet.toastMsgText1))
} else {
getToken(file, 2)
}
@@ -206,7 +206,7 @@ function fileChangeF(e) {
var fileType = file.type;
// 判断是否是动图
if (fileType == 'image/gif' || file.name.includes('.gif')) {
toastMsg(langReplace(localLang.demoModule.toastMsgText1))
toastMsg(langReplace(localLang.guildInfoSet.toastMsgText1))
} else {
getToken(file, 1)
}