it can't using in vue project.
taoyonggang opened this issue · comments
taoyonggang commented
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>Aleksandr Manekin commented
- your variant - 'zh_CN'
- need to change to - 'zh-CN'