fix(projects): 修复登录页刷新跳404

This commit is contained in:
Soybean
2021-10-20 16:38:43 +08:00
parent 3edf46eb52
commit 358d4e8a19
15 changed files with 54 additions and 51 deletions

View File

@ -20,7 +20,7 @@
<gihub-site />
<full-screen />
<user-avatar />
<setting-drawer-button />
<setting-drawer-button v-if="showSettingButton" />
</div>
</div>
</n-layout-header>
@ -60,6 +60,8 @@ const menuWidth = computed(() => {
return `${width}px`;
});
const showSettingButton = import.meta.env.DEV || import.meta.env.VITE_HTTP_ENV === 'STAGING';
</script>
<style scoped>
.global-header {