软件校验接口对接
This commit is contained in:
@@ -56,7 +56,7 @@ const handleFileUpload = async (event) => {
|
||||
const file = event.target.files[0]; // 获取选择的文件
|
||||
if (file) {
|
||||
// 检查文件类型
|
||||
if (file.type === 'text/xml' || file.name.endsWith('.xml')) {
|
||||
if (file.type === 'text/xml' || file.name.endsWith('.xml') || file.name.endsWith('.xlsx')) {
|
||||
loading.value = true; // 显示加载状态
|
||||
try {
|
||||
await props.onFileUpload(file); // 调用父组件传递的上传方法
|
||||
|
||||
@@ -24,7 +24,7 @@ const getCounts = () => {
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
getCounts();
|
||||
// getCounts();
|
||||
addEventListener('updateNotice', debounce((count: number) => {
|
||||
counts.value = count;
|
||||
}, 500));
|
||||
|
||||
Reference in New Issue
Block a user