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
- visible.c
- [CSS] :focus-visibleCSS
- POJ - 3090 Visible Lattice Points
- VIFB:A Visible and Infrared Image Fusion Benchmark
- Flutter:VM snapshot must be valid. Check failed: vm. Must be able to initializeFlutterAI
- @property @synthesize @dynamic
- Property屬性
- Request: credentials property
- find: paths must precede expression:Express
- CSS display:none和visible:hidden區別CSSNone
- visible_windows生成邏輯和解析Windows
- vue-property-decoratorVue
- 類的property特性
- Python @property 詳解Python
- [Javascript] Object property orderJavaScriptObject
- Need to set ‘serverTimezone‘ propertyServer
- Qt QWidget Must construct a QApplication before a QWidgetQTStructAPP
- Cannot set property 'innerHTML' of nullHTMLNull
- iOS面試之@propertyiOS面試
- zend_std_read_property
- 1114 Family Property (25分)
- Cannot read property ‘aDataSort‘ of undefinedUndefined
- [Javascript] How javascript read the property?JavaScript
- 【Redis】錯誤:failed: Hostname must not be empty or nullRedisAINull
- Solution - Codeforces 1166E The LCMs Must be Large
- TypeError: The ‘compilation‘ argument must be an instance of Compilation 報錯Error
- CSS3 transition-propertyCSSS3
- Cannot set property ‘type‘ of null(vue)NullVue
- property和attribute的區別?
- Property [title] does not exist on this collection instance
- TypeScript Crash Course: Property Access ModifiersTypeScript
- 摘:裝飾器@property @setter
- 解決:java.lang.IllegalArgumentException: String must not be emptyJavaException
- python argument 1 must be 2-item sequence, not intPython
- 理解 Kotlin 中的屬性(property)Kotlin