diff --git a/ui/src/views/model/component/ModelCard.vue b/ui/src/views/model/component/ModelCard.vue index 6509fe359..edb3398c0 100644 --- a/ui/src/views/model/component/ModelCard.vue +++ b/ui/src/views/model/component/ModelCard.vue @@ -60,7 +60,6 @@ link type="primary" class="ml-16" - :disabled="!is_permisstion" @click.stop="cancelDownload" >{{ $t('views.model.download.cancelDownload') }} @@ -79,7 +78,6 @@ @@ -100,7 +98,6 @@ currentModel.model_type === 'TTI' || permissionPrecise.paramSetting() " - :disabled="!is_permisstion" icon="Setting" @click.stop="openParamSetting" > @@ -109,7 +106,6 @@ { const downModel = ref() -const is_permisstion = computed(() => { - return user.userInfo?.id == props.model.user_id -}) + const currentModel = computed(() => { if (downModel.value) { return downModel.value @@ -204,7 +198,7 @@ const deleteModel = () => { } const cancelDownload = () => { - loadSharedApi({ type: 'model', systemType: apiType.value }) + loadSharedApi({ type: 'model', systemType: props.sharedType }) .pauseDownload(props.model.id) .then(() => { downModel.value = undefined @@ -227,7 +221,7 @@ const icon = computed(() => { const initInterval = () => { interval = setInterval(() => { if (currentModel.value.status === 'DOWNLOAD') { - loadSharedApi({ type: 'model', systemType: apiType.value }) + loadSharedApi({ type: 'model', systemType: props.sharedType }) .getModelMetaById(props.model.id) .then((ok: any) => { downModel.value = ok.data diff --git a/ui/src/views/model/index.vue b/ui/src/views/model/index.vue index ce9e68301..387636b98 100644 --- a/ui/src/views/model/index.vue +++ b/ui/src/views/model/index.vue @@ -88,7 +88,7 @@ :provider_list="provider_list" :isShared="isShared" :isSystemShare="isSystemShare" - :sharedType="type" + :sharedType="apiType" > @@ -221,7 +221,6 @@ onMounted(() => { ProviderApi.getProvider(loading).then((ok) => { active_provider.value = allObj provider_list.value = [allObj, ...ok.data] - list_model() }) })