slot插槽与for语法一起使用的时候,首次编译会渲染slot内容,关闭重启页面或更改page路径就会触发无法渲染slot,需要再次编译才正常。难道for循环只能写在外面吗?我去掉for倒就正常,但这样就太方便了,有没有其他解决方式,搞了一天了,急死了!!
详细代码请看下图:
![4***@qq.com](https://img-cdn-tc.dcloud.net.cn/account/identicon/ddeeef9f9c1a26a5a629bc4370e5e268.png)
4***@qq.com
- 发布:2021-01-12 10:06
- 更新:2021-06-03 19:43
- 阅读:817
![](http://img-cdn-tc.dcloud.net.cn/uploads/questions/20210112/cc0db0e96f53bdec45d0afbbc8eaed74.png)
![](http://img-cdn-tc.dcloud.net.cn/uploads/questions/20210112/0efd4f182f3884e290a9503510039b27.png)
![](http://img-cdn-tc.dcloud.net.cn/uploads/questions/20210112/dcd98343b190885e801d6ec60b8cca07.png)
![](http://img-cdn-tc.dcloud.net.cn/uploads/questions/20210112/f42f6d290933701803dfa53fcce705a5.png)