ant-design-vue-pro icon indicating copy to clipboard operation
ant-design-vue-pro copied to clipboard

在BasicLayout组件里面可以引入api里面的方法,页面加载出错

Open goukuDev opened this issue 5 years ago • 3 comments

image

不知道能不能在这个组件里面引入方法,但是这样写了后,页面不能加载了。报错了。

image

Uploading image.png…

大佬们帮忙看看这是什么原因吧

goukuDev avatar Oct 16 '20 07:10 goukuDev

引入方法的路径没有问题

goukuDev avatar Oct 16 '20 07:10 goukuDev

请贴报错

sendya avatar Oct 18 '20 14:10 sendya

@sendya 我也遇到了这个问题,使用动态路由后,在BasicLayout、RightContent等组件里引入API里的方法,页面空白,也不报错,猜想可能是由于使用动态路由导致,具体原因还没查明

mamba-in avatar Apr 09 '21 08:04 mamba-in