[Vue warn]: injection "$hasPermissions" not found.

发布于 2024-01-03 11:49:47

crud.tsx:24

at <Index class="h-full" >
at <AsyncComponentWrapper class="h-full" >
at <ElTabPane label="crontabManage" name="crontabManage" class="h-full" >
at <ElTabs modelValue="crontabManage" onUpdate:modelValue=fn class="h-full" ... >
at <ElCard body-style= {height: '100%'} >
at <ElMain class="bg-gray-100 h-full w100" >
at <Index onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< Proxy(Object) {__v_skip: true} > key="/scheduleManage" ... >
at <KeepAlive key=0 include= (3) ['home', 'scheduleManage', 'taskManage'] >
at <BaseTransition mode="out-in" appear=false persisted=false ... >
at <Transition name="slide-right" mode="out-in" >
at <RouterView>
at <LayoutParentView>
at <AsyncComponentWrapper>
at <ElScrollbar ref="layoutMainScrollbarRef" class="layout-main-scroll layout-backtop-header-fixed" wrap-class="layout-main-scroll" ... >
at <ElMain class="layout-main" style="minHeight: calc(100% - 85px)" >
at <LayoutMain ref="layoutMainRef" >
at <AsyncComponentWrapper ref="layoutMainRef" >
at <ElScrollbar ref="layoutScrollbarRef" class="layout-backtop" >
at <ElContainer class="layout-container-view h100" >
at <ElContainer class="layout-container" >
at <LayoutDefaults>
at <AsyncComponentWrapper>
at <Layout onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< Proxy(Object) {__v_skip: true} > >
at <RouterView>
at <ElConfigProvider size="default" locale= {name: 'zh-cn', el: {…}, message: {…}} >
at <App>

crud.tsx:46 Uncaught (in promise) TypeError: hasPermissions is not a function

at createCrudOptions (crud.tsx:46:13)
at Oa (use-crud.ts:504:32)
at vl (use-crud.ts:538:10)
at setup (index.vue:9:50)
at callWithErrorHandling (runtime-core.esm-bundler.js:188:18)
at setupStatefulComponent (runtime-core.esm-bundler.js:7577:25)
at setupComponent (runtime-core.esm-bundler.js:7538:36)
at mountComponent (runtime-core.esm-bundler.js:5875:7)
at processComponent (runtime-core.esm-bundler.js:5841:9)
at patch (runtime-core.esm-bundler.js:5313:11)`

查看更多

关注者
0
被浏览
154
0 个回答
暂无答案,快来添加答案吧

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览