update:文件大小限制

This commit is contained in:
lan
2023-08-15 20:40:25 +08:00
parent a5c2de435e
commit a46cfc0452
5 changed files with 18 additions and 10 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ const showTextDetailVisible = ref(false);
</div>
</template>
<div style="width: 200px;">
<el-progress v-if="value.status!='success'" striped :percentage="value.percentage" :text-inside="true"
<el-progress v-if="value.status!='success' && value.status!='fail'" striped :percentage="value.percentage" :text-inside="true"
:stroke-width="20"></el-progress>
<div style="display: flex;justify-content: space-between">
<qrcode-vue :value="value.text" :size="100"></qrcode-vue>
+3 -2
View File
@@ -4,6 +4,7 @@ import { ref, onMounted, onUnmounted } from 'vue'
import { request } from "@/utils/request";
import { useFileDataStore } from "@/stores/fileData";
import { useFileBoxStore } from "@/stores/fileBox";
import { ElMessage } from "element-plus";
const fileBoxStore = useFileBoxStore();
const fileStore = useFileDataStore();
const props = defineProps({
@@ -63,11 +64,11 @@ const handleHttpRequest = (options: any) => {
fileStore.save();
}
});
}).catch((err: any) => {
}).catch(() => {
fileStore.shareData.forEach((file: any) => {
if (file.uid === options.file.uid) {
file.status = 'fail';
file.text = err.message;
file.code = '上传失败';
fileStore.save();
}
});
@@ -106,7 +106,6 @@ const refreshData = ()=>{
}
refreshData();
const submitSave = () => {
request({
url: '/admin/config/update',
method: 'patch',