feat: 上传前判断大小、新文件插入第一位

This commit is contained in:
lan
2024-06-15 17:27:28 +08:00
parent 4dfb75204d
commit c6fe556e76
15 changed files with 193 additions and 18 deletions
+12
View File
@@ -1,5 +1,17 @@
<script setup lang="ts">
import { onMounted } from "vue";
import { request } from "@/utils/request";
onMounted(() => {
request({
url:'/',
method:'post'
}).then((res:any)=>{
if (res.code === 200) {
localStorage.setItem('config', JSON.stringify(res.detail));
}
})
});
</script>
<template>