From 69d182c8cee63fb850a001b0edf4b613e8aa01c2 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 02 四月 2021 17:58:35 +0800 Subject: [PATCH] 2021-04-02 --- src/tabviews/custom/components/card/cardcellList/index.jsx | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tabviews/custom/components/card/cardcellList/index.jsx b/src/tabviews/custom/components/card/cardcellList/index.jsx index 05b9a24..996c853 100644 --- a/src/tabviews/custom/components/card/cardcellList/index.jsx +++ b/src/tabviews/custom/components/card/cardcellList/index.jsx @@ -279,10 +279,11 @@ if (card.datatype === 'static') { val = card.value || '' - if (/@username@|@fullName@/ig.test(val)) { + if (/@username@|@fullName@|@login_city@/ig.test(val)) { let userName = sessionStorage.getItem('User_Name') || '' let fullName = sessionStorage.getItem('Full_Name') || '' - val = val.replace(/@username@/ig, userName).replace(/@fullName@/ig, fullName) + let city = sessionStorage.getItem('city') || '' + val = val.replace(/@username@/ig, userName).replace(/@fullName@/ig, fullName).replace(/@login_city@/ig, city) } } else if (data.hasOwnProperty(card.field)) { val = data[card.field] -- Gitblit v1.8.0