小程序引入computed报错:Behaviors should be constructed with Behavior()
![](https://www.icode9.com/i/ll/?i=20210717110341614.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM5Mjg3NjAy,size_16,color_FFFFFF,t_70)
解决方案:
const computedBehavior = require('miniprogram-computed').behavior
在引入后面加上.behavior 即可
标签:Behaviors,computed,should,Behavior,报错,behavior
来源: https://blog.csdn.net/qq_39287602/article/details/118853845