Skip to content

Commit

Permalink
chore: publicUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
lb1129 committed Aug 9, 2023
1 parent 16d7d48 commit 617780d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const createHistory =
import.meta.env.VITE_NOT_SUPPORT_HISTORY === 'true' ? createWebHashHistory : createWebHistory

const router = createRouter({
history: createHistory(import.meta.env.BASE_URL),
history: createHistory(import.meta.env.VITE_PUBLIC_URL),
routes
})

Expand Down
3 changes: 2 additions & 1 deletion src/views/index/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<a-layout class="index">
<a-layout-header class="index-header">
<div class="index-header-logo">
<a href="/">
<a :href="publicUrl">
<img :src="logoSvg" alt="logo" />
{{ systemName }}
</a>
Expand Down Expand Up @@ -111,6 +111,7 @@ import { logoutServe } from '@/serves/auth'
import { toggleThemeColor, getThemeColor } from '@/utils/themeColor'
const systemName = import.meta.env.VITE_SYSTEM_NAME
const publicUrl = import.meta.env.VITE_PUBLIC_URL
const collapsed = ref(false)
const themeColor = ref('')
const pickerVisible = ref(false)
Expand Down

0 comments on commit 617780d

Please sign in to comment.