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()
{
if(!file_exists("../install.lock"))
{
//尚未安装不加载插件
return [];
}
$cache_name = "local_install_addons";
return cache_remember(
$cache_name,

View File

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