Browse Source

feat(nc-gui): add router with hash mode and use VueI18nPlugin

pull/5903/head
Wing-Kam Wong 2 years ago
parent
commit
1a5b63ad16
  1. 9
      packages/nc-gui/nuxt.config.ts

9
packages/nc-gui/nuxt.config.ts

@ -1,5 +1,5 @@
import { dirname, resolve } from 'node:path'
import vueI18n from '@intlify/vite-plugin-vue-i18n'
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite'
import Icons from 'unplugin-icons/vite'
import IconsResolver from 'unplugin-icons/resolver'
import Components from 'unplugin-vue-components/vite'
@ -99,7 +99,7 @@ export default defineNuxtConfig({
},
},
plugins: [
vueI18n({
VueI18nPlugin({
include: [resolve(dirname('./lang/**'))],
runtimeOnly: false,
}),
@ -200,4 +200,9 @@ export default defineNuxtConfig({
{ name: 'storeToRefs', from: 'pinia' },
],
},
router: {
options: {
hashMode: true,
},
},
})

Loading…
Cancel
Save