孙钊宁 2 anni fa
parent
commit
1539700d12
2 ha cambiato i file con 4 aggiunte e 3 eliminazioni
  1. 4 1
      src/views/Home/index.vue
  2. 0 2
      src/views/Layout.vue

+ 4 - 1
src/views/Home/index.vue

@@ -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,

+ 0 - 2
src/views/Layout.vue

@@ -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>