Skip to content

Commit

Permalink
fix: external site icons
Browse files Browse the repository at this point in the history
  • Loading branch information
kuoruan committed Jan 23, 2024
1 parent e2c9712 commit 72fae9d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/components/TreeItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -219,22 +219,22 @@ li.tree-item
background-image: url('@/assets/img/file.gif')
&.video:before
background-image: url('///images/icon/mkv.gif')
background-image: url('/images/icon/mkv.gif')
&.audio:before
background-image: url('///images/icon/mp3.gif')
background-image: url('/images/icon/mp3.gif')
&.image:before
background-image: url('///images/icon/jpg.gif')
background-image: url('/images/icon/jpg.gif')
&.archive:before
background-image: url('///images/icon/rar.gif')
background-image: url('/images/icon/rar.gif')
&.subtitle:before
background-image: url('///images/icon/txt.gif')
background-image: url('/images/icon/txt.gif')
&.unknown:before
background-image: url('///images/icon/unknown.gif')
background-image: url('/images/icon/unknown.gif')
.size
display: block
Expand Down
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default defineConfig(({ mode }) => {
xbytes: "xbytes",
},
},
external: ["vue", "xbytes"],
external: ["vue", "xbytes", /^\/images/],
},
},
plugins: [
Expand Down

0 comments on commit 72fae9d

Please sign in to comment.