0.4.6 fix: 修正是否显示登录按钮的逻辑

This commit is contained in:
hi2hi 2024-12-07 16:44:09 +00:00
parent 11da876d8c
commit 62b9c497cb
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "nazhua", "name": "nazhua",
"version": "0.4.5", "version": "0.4.6",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",

View File

@ -278,10 +278,10 @@ function toHome() {
} }
} }
const showDashboardBtn = [ const showDashboardBtn = computed(() => [
config.nazhua.nezhaVersion === 'v1', config.nazhua.nezhaVersion === 'v1',
config.nazhua.v1HideNezhaDashboardBtn !== false, config.nazhua.v1HideNezhaDashboardBtn !== true,
].every((item) => item); ].every((item) => item));
const userLogin = computed(() => store.state.profile?.username); const userLogin = computed(() => store.state.profile?.username);
const dashboardUrl = computed(() => config.nazhua.v1DashboardUrl || '/dashboard'); const dashboardUrl = computed(() => config.nazhua.v1DashboardUrl || '/dashboard');
</script> </script>