diff --git a/src/fvcomponents/fvTable/index.vue b/src/fvcomponents/fvTable/index.vue index a0edf10..0172f61 100644 --- a/src/fvcomponents/fvTable/index.vue +++ b/src/fvcomponents/fvTable/index.vue @@ -125,6 +125,11 @@ const props = defineProps({ isSettingCol: { type: Boolean, default: true + }, + //表格是否刷新 + isLoading: { + type: Boolean, + default: true } }) @@ -217,7 +222,7 @@ const getList = async () => { const { api, params } = props.tableConfig const queryParmas = {...localData.query, ...params} if(api) { - localData.loading = true + localData.loading = props.isLoading try { const {code, data, msg} = await requestList(api, queryParmas).then(res=>{ // console.log(res) diff --git a/src/views/home/index.vue b/src/views/home/index.vue index b980a6c..0b3f58a 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -6,7 +6,7 @@