|
@@ -60,11 +60,8 @@ const statusOptions = [
|
|
|
{ label: '下架', value: 10 }
|
|
|
];
|
|
|
|
|
|
-const isTableReady = ref(false);
|
|
|
-
|
|
|
onBeforeMount(async () => {
|
|
|
await fetchOptions(); // 确保选项数据加载完成
|
|
|
- isTableReady.value = true; // 数据加载完成后设置为 true
|
|
|
});
|
|
|
|
|
|
async function fetchOptions() {
|
|
@@ -185,7 +182,7 @@ async function resetParameter() {
|
|
|
</div>
|
|
|
</div>
|
|
|
<el-divider ref="dividerContainer" style="margin: 20px 0 12px 0;" />
|
|
|
- <div v-if="isTableReady" :style="{ height: tableHeight + 'px' }">
|
|
|
+ <div :style="{ height: tableHeight + 'px' }">
|
|
|
<DataTable ref="table" />
|
|
|
</div>
|
|
|
</el-card>
|