fix: Fix the issue where some applications incorrectly displayed a redirect button on error (#9535)

Refs https://github.com/1Panel-dev/1Panel/issues/9477
This commit is contained in:
CityFun 2025-07-16 18:17:53 +08:00 committed by GitHub
parent 0b1f7e9322
commit 1aec5e443d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -259,10 +259,7 @@
<el-popover
placement="top-start"
trigger="hover"
v-if="
installed.appType == 'website' ||
installed.appKey?.startsWith('local')
"
v-if="hasLinkButton(installed)"
:width="400"
>
<template #reference>
@ -505,6 +502,13 @@ const changeTag = (key: string) => {
search();
};
const hasLinkButton = (installed: any) => {
return (
(installed.appType == 'website' || installed.appKey?.startsWith('local')) &&
(installed.httpPort > 0 || installed.httpsPort > 0 || installed.webUI != '')
);
};
const search = async () => {
searchReq.page = paginationConfig.currentPage;
searchReq.pageSize = paginationConfig.pageSize;