refactor(projects): 代码优化

This commit is contained in:
Soybean
2022-07-10 00:41:35 +08:00
parent da407b6653
commit b60db89801
17 changed files with 31 additions and 34 deletions

View File

@ -12,7 +12,7 @@
<full-screen />
<theme-mode />
<system-message />
<setting-button v-if="isProd" />
<setting-button v-if="showButton" />
<user-avatar />
</div>
</dark-mode-container>
@ -47,7 +47,7 @@ defineProps<Props>();
const theme = useThemeStore();
const isProd = import.meta.env.PROD;
const showButton = import.meta.env.PROD && import.meta.env.VITE_VERCEL !== '1';
</script>
<style scoped>