167167 </LayoutContent >
168168 <Install ref =" installRef" />
169169 <Detail ref =" detailRef" />
170- <TaskLog ref =" taskLogRef" @close =" search(req) " />
170+ <TaskLog ref =" taskLogRef" @close =" refresh " />
171171</template >
172172
173173<script lang="ts" setup>
@@ -189,6 +189,7 @@ import { newUUID, jumpToPath } from '@/utils/util';
189189import Detail from ' ../detail/index.vue' ;
190190import TaskLog from ' @/components/log/task/index.vue' ;
191191import { storeToRefs } from ' pinia' ;
192+ import bus from ' @/global/bus' ;
192193
193194const globalStore = GlobalStore ();
194195const { isProductPro } = storeToRefs (globalStore );
@@ -228,12 +229,28 @@ const detailRef = ref();
228229const taskLogRef = ref ();
229230const syncCustomAppstore = ref (false );
230231
232+ const refresh = () => {
233+ search (req );
234+ };
235+
231236const search = async (req : App .AppReq ) => {
232237 loading .value = true ;
233238 req .pageSize = paginationConfig .pageSize ;
234239 req .page = paginationConfig .currentPage ;
235240 localStorage .setItem (' app-page-size' , req .pageSize + ' ' );
236- await searchApp (req )
241+
242+ const customReq = {
243+ page: req .page ,
244+ pageSize: req .pageSize ,
245+ tags: req .tags ,
246+ name: req .name ,
247+ resource: req .resource ,
248+ showCurrentArch: req .showCurrentArch ,
249+ };
250+ if (syncCustomAppstore .value && req .resource === ' remote' ) {
251+ customReq .resource = ' custom' ;
252+ }
253+ await searchApp (customReq )
237254 .then ((res ) => {
238255 apps .value = res .data .items ;
239256 paginationConfig .total = res .data .total ;
@@ -341,6 +358,9 @@ const searchByName = () => {
341358};
342359
343360onMounted (async () => {
361+ bus .on (' refreshTask' , () => {
362+ search (req );
363+ });
344364 if (router .currentRoute .value .query .install ) {
345365 installKey .value = String (router .currentRoute .value .query .install );
346366 const params = {
0 commit comments