mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-09-12 01:24:38 +08:00
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:
parent
0b1f7e9322
commit
1aec5e443d
1 changed files with 8 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue