|
@@ -15,9 +15,9 @@ import { onMounted, ref } from 'vue';
|
|
|
|
|
|
// 接口
|
|
// 接口
|
|
|
|
|
|
-import { PatentStore } from '@common/src/stores/patent/patent'; //
|
|
|
|
|
|
+import { DownloadStore } from '@common/src/stores/system/download'; //
|
|
import type { IQueryResult } from '@/util/types.util';
|
|
import type { IQueryResult } from '@/util/types.util';
|
|
-const patentAxios = PatentStore();
|
|
|
|
|
|
+const downloadAxios = DownloadStore();
|
|
|
|
|
|
// 加载中
|
|
// 加载中
|
|
const loading: Ref<any> = ref(false);
|
|
const loading: Ref<any> = ref(false);
|
|
@@ -37,9 +37,9 @@ onMounted(async () => {
|
|
loading.value = false;
|
|
loading.value = false;
|
|
});
|
|
});
|
|
const search = async () => {
|
|
const search = async () => {
|
|
- let res: IQueryResult = await patentAxios.pqueue();
|
|
|
|
|
|
+ let res: IQueryResult = await downloadAxios.query({});
|
|
if (res.errcode == '0') {
|
|
if (res.errcode == '0') {
|
|
- list.value = [res.data];
|
|
|
|
|
|
+ list.value = res.data;
|
|
}
|
|
}
|
|
};
|
|
};
|
|
// 下载
|
|
// 下载
|