vue项目中在方法中控制style的方式
定义ref链

在方法中执行

this.$refs.UI.style.setProperty("--color",localStorage.getItem("colorValue"));//给变量赋值(后面这个是要取得的参数)
style上面应该写

定义ref链

在方法中执行

this.$refs.UI.style.setProperty("--color",localStorage.getItem("colorValue"));//给变量赋值(后面这个是要取得的参数)
style上面应该写
