alexusmai / vue-laravel-file-manager

Frontend for Laravel File Manager on Vue.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

it can't using in vue project.

taoyonggang opened this issue · comments

use the projec at vue. will throw error:

[Vue warn]: Error in render: "TypeError: Cannot read property 'back' of undefined"

found in

---> at node_modules/laravel-file-manager/src/components/blocks/Navbar.vue
at node_modules/laravel-file-manager/src/FileManager.vue
at src/views/cloud/FileManager/index.vue
at src/layout/components/AppMain.vue
at src/layout/index.vue
at src/App.vue

This is the vue page.

<script> export default { data() { return { settings: { // axios headers headers: { 'X-Requested-With': 'XMLHttpRequest', Authorization: `Bearer ${window.localStorage.getItem('user-token')}` }, baseUrl: 'http://localhost:8013/api/cloud/cloudDiskFileInfo/', windowsConfig: 2, lang: 'zh_CN', translation: { name: 'zh_CN', content: { about: '关于', back: '后退' } } } } } } </script>
  • your variant - 'zh_CN'
  • need to change to - 'zh-CN'