Property "visible" must be accessed with "$data.visible"
Property “visible” must be accessed with “$data.visible”
@/store/modules/permission.js檔案下的hasPermission方法中的roles.some(role => route.meta.roles.includes(role))報錯,按照下面的程式碼修改好就行
function hasPermission(roles, route) {
if (route.meta && route.meta.roles) {
if (route.meta.roles.indexOf(roles) > -1) {
return true
} else {
return false
}
// return roles.some(role => route.meta.roles.includes(role))
} else {
return true
}
}
相關文章
- Property "visible" must be accessed with "$data.visible" because properties
- vue專案報錯[Vue warn]: Property “visible“ must be accessed with “$data.visible“ because properties startVue
- Property visible must be accessed with $ or _ are not proxied in the Vue instance to prevent錯誤Vue
- Not-null property references a transient value - transient instance must be saved before current opeNull
- jQuery :visiblejQuery
- CUDA VISIBLE DEVICEdev
- [CSS] :focus-visibleCSS
- It's a must to ghd
- XX must be built with ARCUI
- Property屬性
- Request: credentials property
- find: paths must precede expression:Express
- ORA-15028: ASM file '..' not dropped; currently being accessedASM
- Flutter:VM snapshot must be valid. Check failed: vm. Must be able to initializeFlutterAI
- iOS面試之@propertyiOS面試
- 類的property特性
- vue-property-decoratorVue
- Objective-C PropertyObject
- [Javascript] Object property orderJavaScriptObject
- Mount: you must specify the filesystem type
- HDU2841 Visible Trees (容斥原理)
- TROUBLESHOOTING - ASM disk not found/visible/discovered issuesASM
- visible_windows生成邏輯和解析Windows
- Python @property 詳解Python
- Cannot set property 'innerHTML' of nullHTMLNull
- Service異常:Service Intent must be explicitIntent
- mongodb報錯:the limit must be specified as a number。MongoDBMIT
- CSS display:none和visible:hidden區別CSSNone
- display:none 和visible:false 的區別(轉)NoneFalse
- CSS3 transition-propertyCSSS3
- Need to set ‘serverTimezone‘ propertyServer
- Cannot set property ‘type‘ of null(vue)NullVue
- TypeScript Crash Course: Property Access ModifiersTypeScript
- attribute和property區別
- javascript array.property.slice.callJavaScript
- @property中的變數與_變數
- Property 與 Attribute 區別
- [Javascript] How javascript read the property?JavaScript