mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-16 06:11:38 +00:00
Feature: use nuxt bridge to bundle client
This commit is contained in:
parent
98c117f0b8
commit
228b5203a8
23 changed files with 8484 additions and 19783 deletions
|
|
@ -18,8 +18,8 @@ export default function ({ $axios, store, $config }) {
|
|||
}
|
||||
|
||||
console.log($config)
|
||||
if ($config.routerBasePath) {
|
||||
config.url = `${$config.routerBasePath}${config.url}`
|
||||
if ($config.public.routerBasePath) {
|
||||
config.url = `${$config.public.routerBasePath}${config.url}`
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ export default function ({ $config }) {
|
|||
const link = document.createElement('link')
|
||||
link.rel = 'icon'
|
||||
link.type = 'image/x-icon'
|
||||
link.href = `${$config.routerBasePath || ''}${faviconPath}`
|
||||
link.href = `${$config.public.routerBasePath || ''}${faviconPath}`
|
||||
|
||||
document.head.appendChild(link)
|
||||
}
|
||||
|
|
@ -182,5 +182,5 @@ export default ({ app, store }, inject) => {
|
|||
inject('eventBus', new Vue())
|
||||
inject('isDev', process.env.NODE_ENV !== 'production')
|
||||
|
||||
store.commit('setRouterBasePath', app.$config.routerBasePath)
|
||||
store.commit('setRouterBasePath', app.$config.public.routerBasePath)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue