File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 1182
1182
4-类型改变,红色;
1183
1183
*/
1184
1184
test : function ( ) {
1185
+ var baseUrl = App . getBaseUrl ( ) || ''
1186
+ if ( baseUrl == '' ) {
1187
+ alert ( '请先输入有效的URL!' )
1188
+ return
1189
+ }
1190
+ if ( baseUrl . indexOf ( '/apijson.cn' ) >= 0 || baseUrl . indexOf ( '/39.108.143.172' ) >= 0 ) {
1191
+ alert ( '请把URL改成你自己的!' )
1192
+ return
1193
+ }
1185
1194
const list = App . remotes || [ ]
1186
1195
const allCount = list . length - 1
1187
1196
App . testProcess = allCount <= 0 ? '' : '正在测试: ' + 0 + '/' + allCount
1188
1197
if ( allCount <= 0 ) {
1189
1198
alert ( '请先获取测试用例文档\n点击[查看共享]图标按钮' )
1190
1199
return
1191
1200
}
1192
- var baseUrl = App . getBaseUrl ( )
1201
+
1193
1202
for ( var i = 0 ; i < list . length ; i ++ ) {
1194
1203
const item = list [ i ]
1195
1204
if ( item == null || item . name == null ) {
You can’t perform that action at this time.
0 commit comments