可以通过如下方法注入用户信息,然后通过this.userInfo获取,这样就可以通过动态操作options来控制列表元素了
computed: { ...mapGetters(["userInfo"]), },
讨论(0)