修复bug

This commit is contained in:
2025-11-21 16:59:33 +08:00
parent 733c346887
commit 4f5135a619

View File

@@ -38,7 +38,7 @@
</template> </template>
<script> <script>
import {ref, onMounted, defineExpose} from 'vue'; import {ref, onMounted} from 'vue';
import {FeedApi} from '../../api/feed'; import {FeedApi} from '../../api/feed';
import {ElMessageBox, ElMessage} from 'element-plus'; import {ElMessageBox, ElMessage} from 'element-plus';
@@ -165,10 +165,6 @@ export default {
fetchRawMaterials(); fetchRawMaterials();
}); });
defineExpose({
fetchRawMaterials,
});
return { return {
tableData, tableData,
loading, loading,
@@ -182,6 +178,7 @@ export default {
handleExpandChange, handleExpandChange,
handleEdit: (row) => console.log('edit', row), handleEdit: (row) => console.log('edit', row),
handleDelete, handleDelete,
fetchRawMaterials, // 将方法暴露出去
}; };
}, },
}; };