修复bug
This commit is contained in:
@@ -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, // 将方法暴露出去
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user