l***@163.com
l***@163.com
  • 发布:2023-02-06 00:19
  • 更新:2024-01-09 16:20
  • 阅读:197

#插件讨论# uni-captcha的config.js配置文件不生效

分类:uni-app
关联插件: uni-captcha

配置文件改了后,上传部署,运行了,为什么不生效啊
"background": "#00aaff",
"fontSize": 60,
"mathExpr": true,

2023-02-06 00:19 负责人:无 分享
已邀请:
l***@163.com

l***@163.com (作者)

只能先改源文件了, uniclound>cloundfunctions>common>uni-captcha>index.js
Ctrl+F:background

x***@outlook.com

x***@outlook.com

配置路径:unicloud配置中心,uni-config-center->uni-captcha->config.json

    {  
        "width":150,  
        "height":40,  
        "background":"#FFFAE8",  
        "size":4,  
        "noise":4,  
        "color":false,  
        "fontSize":40,  
        "ignoreChars":"",  
        "mathExpr":false,  
        "mathMin":1,  
        "mathMax":9,  
        "mathOperator":"",  
        "expiresDate":180,  
        "scene":{  
            "login":{  
                "mathExpr":true     //该配置会覆盖根节点的值,表示scene的值为login时,验证码使用数学表达式  
            },  
            "register":{  
                "expiresDate":60,    //该配置会覆盖根节点的值,表示scene的值为login时,验证码过期时间为60秒  
            }  
        }  
    }  

按照文档在uni-config-center->uni-captcha->config.json 里面配置后上传也不起作用。这是为什么?

要回复问题请先登录注册