diff --git a/src/views/appStore/components/app.vue b/src/views/appStore/components/app.vue index 68700d61..d720dfc4 100644 --- a/src/views/appStore/components/app.vue +++ b/src/views/appStore/components/app.vue @@ -16,8 +16,8 @@ const openDetailModal = (item) => { emit('onOpenDetail', item) } -const checkInstallStatus = (space, identifier) => { - const name = `${space}/${identifier}` +const checkInstallStatus = (identifier) => { + const name = `${identifier}` return !isUndefined(props.localInstallList[name]) && props.localInstallList[name].status } @@ -35,13 +35,13 @@ const checkInstallStatus = (space, identifier) => {
已安装
本地应用
diff --git a/src/views/appStore/components/appDetail.vue b/src/views/appStore/components/appDetail.vue index ab6e1a44..32ab75be 100644 --- a/src/views/appStore/components/appDetail.vue +++ b/src/views/appStore/components/appDetail.vue @@ -35,7 +35,7 @@ const open = (identifier) => { getDetail({ identifier }).then(res => { loading.value = false data.value = res.data.data - const key = `${data.value.created_by.space}/${data.value.app.identifier}` + const key = `${data.value.app.identifier}` if (checkInstallStatus(key)) { isInstall.value = true } @@ -62,7 +62,6 @@ const downloadAndInstall = async () => { } const body = { - space: data.value.created_by.space, identifier: data.value.app.identifier, version: data.value.version[0].version, } @@ -107,7 +106,6 @@ const unInstallApp = () => { } const body = { - space: data.value.created_by.space, identifier: data.value.app.identifier, version: data.value.version[0].version, } @@ -186,7 +184,7 @@ defineExpose({ open }) 一年 / 永久 - {{ data?.created_by?.space }}/{{ data?.app?.identifier }} + {{ data?.app?.identifier }} {{ dayjs(data?.app?.created_at).format("YYYY-MM-DD") }} diff --git a/src/views/appStore/components/appList.vue b/src/views/appStore/components/appList.vue index dc169ef2..e04d7123 100644 --- a/src/views/appStore/components/appList.vue +++ b/src/views/appStore/components/appList.vue @@ -47,11 +47,7 @@ const requestAppList = (params = { page: 1, size: 9999 }) => { if (res.code === 200) { const { list, rowTotal } = res.data?.data originalAppList.value = list - onlyLocalAppList.value = originalAppList.value.map(item => { - if (! isUndefined(localInstallList.value[`${item.space}/${item.identifier}`]) ) { - return item - } - }) + onlyLocalAppList.value = originalAppList.value.filter(item => !isUndefined(localInstallList.value[`${item.identifier}`])); total.value = rowTotal loading.value = false setAppList() @@ -179,7 +175,7 @@ onMounted(() => {
  • 价格: -
    +