From 082525152ac56e4f3cda2a9ca3bcd1f62ba073ce Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 29 六月 2023 12:00:17 +0800
Subject: [PATCH] 2023-06-29

---
 src/views/interface/workspace/request/index.jsx |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/views/interface/workspace/request/index.jsx b/src/views/interface/workspace/request/index.jsx
index ae73278..33f2c1e 100644
--- a/src/views/interface/workspace/request/index.jsx
+++ b/src/views/interface/workspace/request/index.jsx
@@ -95,7 +95,8 @@
     } else if (config.active === 'raw') {
       if (config.raw) {
         try {
-          raws = JSON.parse(config.raw)
+          raws = config.raw.replace(/@userid@/ig, sessionStorage.getItem('UserID') || '').replace(/@LoginUID@/ig, sessionStorage.getItem('LoginUID') || '')
+          raws = JSON.parse(raws)
         } catch (e) {
           Modal.error({
             title: '鍙傛暟鏍煎紡閿欒锛屽繀椤讳负JSON鏍煎紡锛�'
@@ -281,6 +282,7 @@
                 <Radio value={'formData'}>formData</Radio>
                 <Radio value={'raw'}>raw</Radio>
               </Radio.Group>
+              {active === 'raw' ? <span style={{float: 'right', color: '#a5a5a5', fontSize: '13px'}}>娉細浣跨敤@userid@銆丂loginuid@鏃跺皢鑷姩鏇挎崲銆�</span> : null}
             </div>
             <div className={'body-content ' + (active === 'none' ? 'show' : '')}>
               <div className="no-body">This request does not have a body</div>

--
Gitblit v1.8.0