update:文件大小限制
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user