使用Vue3.2.31版本,测试Guard模块,经过测试正常显示 normal 方式,根据文档修改为mode模式时,利用method更改visible参数,发现报错并无法正常显示。
在Firefox报错内容如下:
Uncaught (in promise) TypeError: this.$guard is undefined
在Edge在报错如下:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'show')
后进行测试,发现如果直接将visible设置为true可以正常显示mode模式,但关闭时仍会报错。
同时,发现直接使用 npm install @authing/vue-ui-components 无法正常安装模块,为正常安装此模块,我所使用的npm命令为npm install @authing/vue-ui-components --legacy-peer-deps