This commit is contained in:
全栈小学生 2023-05-31 12:57:16 +08:00
parent 44d37d90e3
commit 8c7461a7c1
2 changed files with 8 additions and 4 deletions

View File

@ -37,6 +37,11 @@ abstract class BaseDict extends Storage
*/ */
protected function getLocalAddons() protected function getLocalAddons()
{ {
if(!file_exists("../install.lock"))
{
//尚未安装不加载插件
return [];
}
$cache_name = "local_install_addons"; $cache_name = "local_install_addons";
return cache_remember( return cache_remember(
$cache_name, $cache_name,

View File

@ -64,10 +64,9 @@ language.loadLocaleMessages(route.path, useSystemStore().lang)
// title // title
useHead({ useHead({
titleTemplate: (productCategory) => { titleTemplate: (title) => {
return productCategory const siteTitle = systemStore.site.front_end_name || systemStore.site.site_name
? `${productCategory} - ${systemStore.site.front_end_name || systemStore.site.site_name}` return title ? `${title} - ${siteTitle}` : siteTitle
: systemStore.site.front_end_name
} }
}) })
</script> </script>