diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-11-12 23:03:06 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-11-12 23:03:06 +0100 |
commit | 77975d53d77ba0c928fa54b6a4771ee3475b6aad (patch) | |
tree | b3a66a8a7bda11e3beb9e4092b06270c62d940e6 /src/main.js | |
parent | b1cc367a0d5aba87c336661a2ee97c2cc8e688bf (diff) |
Use nextcloud-server to fix router base
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'src/main.js')
-rw-r--r-- | src/main.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.js b/src/main.js index 797f32dd..831dd5e1 100644 --- a/src/main.js +++ b/src/main.js @@ -26,6 +26,7 @@ import App from './App' import router from './router' import store from './store' import { sync } from 'vuex-router-sync' +import { generateFilePath } from 'nextcloud-server/dist/router' /** GLOBAL COMPONENTS AND DIRECTIVE */ import { AppNavigation, DatetimePicker, Multiselect, PopoverMenu } from 'nextcloud-vue' @@ -42,7 +43,7 @@ __webpack_nonce__ = btoa(OC.requestToken) // OC.generateUrl ensure the index.php (or not) // We do not want the index.php since we're loading files // eslint-disable-next-line -__webpack_public_path__ = OC.linkTo('contacts', 'js/') +__webpack_public_path__ = generateFilePath('contacts', '', 'js/') Vue.component('AppNavigation', AppNavigation) Vue.component('DatetimePicker', DatetimePicker) |