zhongxiaoyu 2 years ago
parent
commit
6c830f467c

+ 2 - 2
src/views/systemSettings/log/index.vue

@@ -98,7 +98,7 @@ const loadDisabled = computed(() => loading.value || noMore.value)
 //表头
 const tableColumns = ref<TableColumn[]>([])
 //列表
-const tableData = ref<any>([])
+const tableData = ref<any[]>([])
 const resetTable = () => {
   page = 0
   loading.value = false
@@ -129,7 +129,7 @@ const getTableData = async () => {
         page--
         noMore.value = true
       }
-      tableData.push(...listValues)
+      tableData.value.push(...listValues)
       loading.value = false
     } else {
       throw new Error('获取数据失败')

+ 2 - 2
src/views/systemSettings/serviceManagement/index.vue

@@ -754,7 +754,7 @@ const loadDisabled = computed(() => loading.value || noMore.value)
 //表头
 const tableColumns = ref<TableColumn[]>([])
 //列表
-const tableData = ref<any>([])
+const tableData = ref<any[]>([])
 const resetTable = () => {
   page = 0
   loading.value = false
@@ -782,7 +782,7 @@ const getTableData = async () => {
         page--
         noMore.value = true
       }
-      tableData.push(...listValues)
+      tableData.value.push(...listValues)
       loading.value = false
     } else {
       throw new Error('获取数据失败')