uniapp中背景颜色使用scss变量不生效

Vue项目中,背景颜色使用scss变量没问题,但在uniapp 写小程序,背景颜色使用scss变量时,不生效,后来对比了一下,uniapp中写scss变量,不能使用驼峰。
例如这种是不生效的
在这里插入图片描述
在这里插入图片描述
而改成下面这种就可以了
在这里插入图片描述

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_41884808/article/details/128458511