Skip to content

Commit

Permalink
smoother navigation via router
Browse files Browse the repository at this point in the history
  • Loading branch information
userXinos committed Nov 1, 2023
1 parent 3bf99bf commit 722370c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/regulation/formatValueRules.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// noinspection SpellCheckingInspection

import { RouterLink } from 'vue-router';
import i18n from '@Utils/Vue/i18n';
import store from '@Store/index';
import Icon from '@/components/Icon.vue';
Expand Down Expand Up @@ -219,7 +220,7 @@ export default [
(modules) => (createElement) => modules == null ? null : (
createElement('div', null,
modules.map((mod) => (
createElement('a', { href: `${process.env.BASE_URL}${mod.SlotType}#${mod.Name}` },
createElement(RouterLink, { to: `${process.env.BASE_URL}${mod.SlotType}#${mod.Name}` },
createElement(Icon, { name: mod.Icon, dir: 'game/Modules' }),
store.state.userSettings.compactModulesByArtTypeTable ? null : createElement('p', null, t(mod.TID)),
)
Expand Down

0 comments on commit 722370c

Please sign in to comment.