修复bug
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {ref, onMounted, defineExpose} from 'vue';
|
||||
import {ref, onMounted} from 'vue';
|
||||
import {FeedApi} from '../../api/feed';
|
||||
import {ElMessageBox, ElMessage} from 'element-plus';
|
||||
|
||||
@@ -165,10 +165,6 @@ export default {
|
||||
fetchRawMaterials();
|
||||
});
|
||||
|
||||
defineExpose({
|
||||
fetchRawMaterials,
|
||||
});
|
||||
|
||||
return {
|
||||
tableData,
|
||||
loading,
|
||||
@@ -182,6 +178,7 @@ export default {
|
||||
handleExpandChange,
|
||||
handleEdit: (row) => console.log('edit', row),
|
||||
handleDelete,
|
||||
fetchRawMaterials, // 将方法暴露出去
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user