Commit 9b626bd6 authored by 杨思琦's avatar 杨思琦

fix: 版本更新

parent 8252d329
Pipeline #61000 waiting for manual action with stages
...@@ -110,9 +110,9 @@ ...@@ -110,9 +110,9 @@
"@wisdom-map/arcgismap": "1.4.0-56", "@wisdom-map/arcgismap": "1.4.0-56",
"@wisdom-map/basemap": "1.1.0-11", "@wisdom-map/basemap": "1.1.0-11",
"@wisdom-map/util": "^1.0.28-0", "@wisdom-map/util": "^1.0.28-0",
"@wisdom-utils/components": "0.1.262", "@wisdom-utils/components": "0.1.264",
"@wisdom-utils/runtime": "0.0.32", "@wisdom-utils/runtime": "0.0.32",
"@wisdom-utils/utils": "0.1.302", "@wisdom-utils/utils": "0.1.304",
"animate.css": "^4.1.1", "animate.css": "^4.1.1",
"antd": "4.21.2", "antd": "4.21.2",
"compression": "1.7.4", "compression": "1.7.4",
......
...@@ -21,8 +21,8 @@ const ValidContainer = props => { ...@@ -21,8 +21,8 @@ const ValidContainer = props => {
const [form] = Form.useForm(); const [form] = Form.useForm();
// eslint-disable-next-line react/no-this-in-sfc // eslint-disable-next-line react/no-this-in-sfc
const password = localStorage.getItem('password_token'); const password = localStorage.getItem('password_token');
let rules = localStorage.getItem('password_pwdRegex'); let rules = localStorage.getItem('password_pwdRegex') ? localStorage.getItem('password_pwdRegex') : '';
const rulesTip = localStorage.getItem('password_pwdRegexTip'); const rulesTip = localStorage.getItem('password_pwdRegexTip') ? localStorage.getItem('password_pwdRegexTip') : '';
let reg; let reg;
try { try {
reg = new RegExp(rules); reg = new RegExp(rules);
...@@ -36,7 +36,7 @@ const ValidContainer = props => { ...@@ -36,7 +36,7 @@ const ValidContainer = props => {
const tk = global.token; const tk = global.token;
// eslint-disable-next-line no-eval // eslint-disable-next-line no-eval
if (tk) { if (tk) {
if (rules !== '' && !reg.test(password)) { if (rules && rules !== '' && !reg.test(password)) {
setNeedChangePassword(true); setNeedChangePassword(true);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment