@@ -1,5 +1,6 @@
<template>
<el-table
+ v-loading="loading"
:data="tableData"
style="width: 100%"
border
@@ -46,9 +47,11 @@ const page = ref({
size: 10,
});
const total = ref(0);
-
+const loading = ref(false);
const getList = async () => {
+ loading.value = true;
let { code, data } = await productList(page.value);
+ loading.value = false;
if (code != 200) return;
tableData.value = data.records.map((item, i) => ({
...item,
@@ -53,7 +53,5 @@ const { isLogin, logout } = useLogin();
display: flex;
align-items: center;
justify-content: end;
- border-bottom: solid 1px var(--el-menu-border-color);
- background-color: var(--el-menu-bg-color);
}
</style>