修改切换页面的逻辑
@ -584,7 +584,7 @@ public class AlphaFineFrame extends JFrame {
switchType(CellType.PLUGIN);
break;
case TEMPLATE_SHOP:
TemplateShopPane.getInstance().showPagePane();
TemplateShopPane.getInstance().showResult();
switchType(CellType.TEMPLATE_SHOP);
}
@ -71,8 +71,12 @@ public class TemplateShopPane extends JPanel {
public void showPagePane() {
public void showResult() {
switchCard(PAGE_PANEL);
if (Strings.isEmpty(AlphaFineHelper.getAlphaFineDialog().getSearchText())) {
switchCard(DEFAULT_PAGE_PANEL);
} else {
// 打开二级页面,显示详细信息