Skip to content

Commit

Permalink
fix(directive): 🧩 修改系统名称
Browse files Browse the repository at this point in the history
  • Loading branch information
ita-code committed Jan 25, 2024
1 parent 0bdfa61 commit c00bbbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# title
VITE_GLOB_APP_TITLE = Admin
VITE_GLOB_APP_TITLE = YiLe-Admin

# 本地运行端口号
VITE_PORT = 1125
Expand Down
3 changes: 2 additions & 1 deletion src/views/login/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="login-form">
<div class="login-logo">
<img class="login-icon" src="@/assets/images/logo.svg" alt="" />
<h2 class="logo-text">Admin</h2>
<h2 class="logo-text">{{ env.VITE_GLOB_APP_TITLE }}</h2>
</div>
<LoginForm />
</div>
Expand All @@ -16,6 +16,7 @@
<script setup lang="ts" name="login">
import LoginForm from "./components/LoginForm.vue";
import SwitchDark from "@/components/SwitchDark/index.vue";
const env = import.meta.env;
</script>

<style scoped lang="scss">
Expand Down

0 comments on commit c00bbbe

Please sign in to comment.