li.shaoyi 3 年之前
父節點
當前提交
268e82d529
共有 2 個文件被更改,包括 4 次插入5 次删除
  1. 1 2
      src/business/favorite/index.ts
  2. 3 3
      src/packages/pc/views/favorite/main/index.vue

+ 1 - 2
src/business/favorite/index.ts

@@ -5,7 +5,7 @@ import { Category } from '@/constants/diamond'
 import { useFavoriteStore } from '@/stores'
 
 export function useFavorite() {
-    const { loading, favoriteList, getFavoriteList } = useFavoriteStore()
+    const { favoriteList, getFavoriteList } = useFavoriteStore()
     const { dataList, total, pageIndex, pageSize, selectList, buttonList } = useDataTable<Ermcp.MyFavoriteRsp>({ pagination: true })
     const columns = shallowRef(getTableColumns('favorite'))
 
@@ -28,7 +28,6 @@ export function useFavorite() {
     })
 
     return {
-        loading,
         dataList,
         columns,
         total,

+ 3 - 3
src/packages/pc/views/favorite/main/index.vue

@@ -2,9 +2,9 @@
 <template>
     <app-view>
         <template #header>
-            <app-filter v-bind="{ selectList,  buttonList }" :loading="loading" />
+            <app-filter v-bind="{ selectList,  buttonList }" />
         </template>
-        <app-table :data="dataList" v-model:columns="columns" :loading="loading">
+        <app-table :data="dataList" v-model:columns="columns">
             <!-- 操作 -->
             <template #operate="{ row }">
                 <app-auth-operation :options="{ selectedRow: row }" @closed="getFavoriteList" />
@@ -23,5 +23,5 @@ import AppTable from '@pc/components/base/table/index.vue'
 import AppPagination from '@pc/components/base/pagination/index.vue'
 import AppFilter from '@pc/components/base/table-filter/index.vue'
 
-const { loading, dataList, columns, total, pageIndex, pageSize, selectList, buttonList, getFavoriteList } = useFavorite()
+const { dataList, columns, total, pageIndex, pageSize, selectList, buttonList, getFavoriteList } = useFavorite()
 </script>