mirror of
https://github.com/hi2shark/nazhua.git
synced 2026-01-17 01:30:44 +08:00
0.4.6 fix: 修正是否显示登录按钮的逻辑
This commit is contained in:
parent
11da876d8c
commit
62b9c497cb
@ -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",
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user