Merge branch 'main' of github.com:maxkb-dev/maxkb
This commit is contained in:
commit
ee310ef636
@ -152,12 +152,12 @@ const getDatasetHitTest: (
|
|||||||
* @param 参数 dataset_id
|
* @param 参数 dataset_id
|
||||||
* @query 参数 sync_type // 同步类型->replace:替换同步,complete:完整同步
|
* @query 参数 sync_type // 同步类型->replace:替换同步,complete:完整同步
|
||||||
*/
|
*/
|
||||||
const getSyncWebDateset: (
|
const putSyncWebDateset: (
|
||||||
dataset_id: string,
|
dataset_id: string,
|
||||||
sync_type: string,
|
sync_type: string,
|
||||||
loading?: Ref<boolean>
|
loading?: Ref<boolean>
|
||||||
) => Promise<Result<any>> = (dataset_id, sync_type, loading) => {
|
) => Promise<Result<any>> = (dataset_id, sync_type, loading) => {
|
||||||
return get(`${prefix}/${dataset_id}`, { sync_type }, loading)
|
return put(`${prefix}/${dataset_id}/sync_web`, { sync_type }, loading)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -170,5 +170,5 @@ export default {
|
|||||||
listUsableApplication,
|
listUsableApplication,
|
||||||
getDatasetHitTest,
|
getDatasetHitTest,
|
||||||
postWebDateset,
|
postWebDateset,
|
||||||
getSyncWebDateset
|
putSyncWebDateset
|
||||||
}
|
}
|
||||||
|
|||||||
@ -54,7 +54,7 @@ const useDatasetStore = defineStore({
|
|||||||
async asyncSyncDateset(id: string, sync_type: string, loading?: Ref<boolean>) {
|
async asyncSyncDateset(id: string, sync_type: string, loading?: Ref<boolean>) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
datasetApi
|
datasetApi
|
||||||
.getSyncWebDateset(id, sync_type, loading)
|
.putSyncWebDateset(id, sync_type, loading)
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
resolve(data)
|
resolve(data)
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user