字节换算为mb,改为换算为kb

This commit is contained in:
wangxk 2025-06-03 16:13:47 +08:00
parent 27a36ce938
commit 88307ad548
7 changed files with 3 additions and 3 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -103,12 +103,12 @@ onBeforeUnmount(()=>{
<!-- <lang-select /> --> <!-- <lang-select /> -->
</div> </div>
<!-- 头像 --> <!-- 头像 -->
<div style="heigth:100%;display: flex;display: -webkit-flex;align-items: center; -webkit-align-items: center; "> <!-- <div style="heigth:100%;display: flex;display: -webkit-flex;align-items: center; -webkit-align-items: center; ">
<div class="heighta"></div> <div class="heighta"></div>
<img v-if="userStore.avatar!== ''" :src="url + '/avatar/' + userStore.avatar + '?imageView2/1/w/80/h/80'" <img v-if="userStore.avatar!== ''" :src="url + '/avatar/' + userStore.avatar + '?imageView2/1/w/80/h/80'"
class="w-[30px] h-[30px] rounded-lg rounded-full" style="border-radius: 50%;" /> class="w-[30px] h-[30px] rounded-lg rounded-full" style="border-radius: 50%;" />
<img v-else src="@/assets/MenuIcon/top_tx.png" alt="" class="w-[30px] h-[30px] rounded-lg rounded-full" style="border-radius: 50%;"> <img v-else src="@/assets/MenuIcon/top_tx.png" alt="" class="w-[30px] h-[30px] rounded-lg rounded-full" style="border-radius: 50%;">
</div> </div> -->
<el-tooltip content="个人中心" effect="dark" placement="bottom"> <el-tooltip content="个人中心" effect="dark" placement="bottom">
<div class="cursor-pointer flex justify-center items-center pl-[10px]" <div class="cursor-pointer flex justify-center items-center pl-[10px]"

View File

@ -417,7 +417,7 @@ function delfileOne(row: any) {
} }
//mb //mb
function bytesToMB(bytes: any) { function bytesToMB(bytes: any) {
return bytes / Math.pow(1024, 2); return bytes / 1024;
} }
// //
function submitfile() { function submitfile() {