From 809987a63ced6f35a7d37623af33bdba31ca6c93 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期六, 08 十月 2022 15:24:03 +0800 Subject: [PATCH] 2022-10-08 --- src/utils/utils.js | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/utils/utils.js b/src/utils/utils.js index 94ac0a2..2ac3152 100644 --- a/src/utils/utils.js +++ b/src/utils/utils.js @@ -2069,6 +2069,20 @@ _sql += _backCustomScript } + if (window.GLOB.breakpoint) { + let start = new RegExp('\\/\\*\\$breakpoint_begin_' + window.GLOB.breakpoint + '@', 'ig') + let end = new RegExp('@breakpoint_end_' + window.GLOB.breakpoint + '\\$\\*\\/', 'ig') + + if (window.GLOB.breakpoint === 'all') { + start = /\/\*\$breakpoint_begin_[0-9a-z_]+@/ig + end = /@breakpoint_end_[0-9a-z_]+\$\*\//ig + } + + _sql = _sql.replace(start, '').replace(end, '') + _sql += ` + z_debug_end: select @ErrorCode='E',@retmsg='debug_end' goto aaa` + } + if (retmsg) { _sql += ` aaa: if @ErrorCode!='' @@ -2087,20 +2101,6 @@ _sql = _sql.replace(/@SessionUid@/ig, `'${localStorage.getItem('SessionUid') || ''}'`) _sql = _sql.replace(/@UserID@/ig, `'${sessionStorage.getItem('UserID') || ''}'`) _sql = _sql.replace(/@Appkey@/ig, `'${window.GLOB.appkey || ''}'`) - - if (window.GLOB.breakpoint) { - let start = new RegExp('\\/\\*\\$breakpoint_begin_' + window.GLOB.breakpoint + '@', 'ig') - let end = new RegExp('@breakpoint_end_' + window.GLOB.breakpoint + '\\$\\*\\/', 'ig') - - if (window.GLOB.breakpoint === 'all') { - start = /\/\*\$breakpoint_begin_[0-9a-z_]+@/ig - end = /@breakpoint_end_[0-9a-z_]+\$\*\//ig - } - - _sql = _sql.replace(start, '').replace(end, '') - _sql += ` - z_debug_end: select @ErrorCode='E',@retmsg='debug_end' goto aaa` - } if (window.GLOB.debugger === true || (window.debugger === true && options.sysType !== 'cloud')) { // _sql = _sql.replace(/\n\s{8}/ig, '\n') -- Gitblit v1.8.0