diff --git a/niucloud/core/dict/BaseDict.php b/niucloud/core/dict/BaseDict.php index c3e0604e6..fb73386fa 100644 --- a/niucloud/core/dict/BaseDict.php +++ b/niucloud/core/dict/BaseDict.php @@ -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, diff --git a/web/app.vue b/web/app.vue index f9cbb9953..e79482d5b 100644 --- a/web/app.vue +++ b/web/app.vue @@ -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 } }) \ No newline at end of file