Skip to content

Commit 96d3709

Browse files
committed
APIAuto:帐号上新增光标悬浮详情,优化自动生成场景用例参数传递配置
1 parent f5dacb5 commit 96d3709

3 files changed

Lines changed: 70 additions & 61 deletions

File tree

‎APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/api/apijson/StringUtil.js‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ var StringUtil = {
166166
var c = s.substring(i, i + 1);
167167
var isBig = /[A-Z]/.test(c)
168168
if (lastInd >= 1 && (isBig || i <= 0)) {
169-
return s.substring(i, lastInd);
169+
return s.substring(i, lastInd + 1);
170170
}
171171

172-
if (hasBig && ! isBig) {
172+
if (hasBig && lastInd < 0 && ! isBig) {
173173
lastInd = i;
174174
}
175175
hasBig = hasBig || isBig
@@ -189,11 +189,11 @@ var StringUtil = {
189189
for (var i = s.length - 1; i >= 0; i--) {
190190
var c = s.substring(i, i + 1);
191191
var isBig = /[A-Z]/.test(c)
192-
if (lastInd >= 0 && (isBig || i <= 0)) {
193-
return s.substring(lastInd + 1);
192+
if (lastInd >= 0 && (isBig != hasBig || i <= 0)) {
193+
return s.substring(lastInd + (isBig ? 0 : 1));
194194
}
195195

196-
if (hasBig && ! isBig) {
196+
if (hasBig && lastInd < 0 && ! isBig) {
197197
lastInd = i;
198198
}
199199
hasBig = hasBig || isBig

‎APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/api/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@
686686
<button style="background-color: #DDD;margin: 0px;outline: none;border: #DDD 1px solid;" href="javascript:void(0)" @click="removeAccountTab()"> - </button>
687687
<!-- 每个账号 -->
688688
<div v-for="(item, index) in accounts" style="display: inline-block; border: #DDD 1px solid" :style="{backgroundColor: currentAccountIndex == index ? 'transparent' : '#DDD'}">
689-
<button style="outline: none; border: none" :style="{backgroundColor: currentAccountIndex == index ? 'transparent' : '#DDD', color: currentAccountIndex == index && item.isLoggedIn ? 'red' : 'black'}" @click="onClickAccount(index, item)">{{ item.name + (getBaseUrlLength(vUrl.value) > 0 ? '' : '@' + StringUtil.trim(item.baseUrl)) }}</button>
689+
<button class="hint--top" :data-hint="(item.account || item.email || item.phone) + (StringUtil.isEmpty(item.baseUrl) ? '' : '@' + item.baseUrl)" style="outline: none; border: none; padding: 3px;" :style="{backgroundColor: currentAccountIndex == index ? 'transparent' : '#DDD', color: currentAccountIndex == index && item.isLoggedIn ? 'red' : 'black'}" @click="onClickAccount(index, item)">{{ item.name + (getBaseUrlLength(vUrl.value) > 0 ? '' : '@' + StringUtil.trim(item.baseUrl)) }}</button>
690690
<br v-show="isStatisticsEnabled && isCrossEnabled && isAllSummaryShow()" />
691691
<div v-show="isStatisticsEnabled && isCrossEnabled && isAllSummaryShow()" style="background: lightgray; padding: 1px; display: inline-block; margin: 1px" >
692692
<!-- 只能写成一行来消除间隙,不能换行、空格 -->

0 commit comments

Comments
 (0)