File tree Expand file tree Collapse file tree 2 files changed +11276
-3
lines changed
src/apps/dataService/module/dataService Expand file tree Collapse file tree 2 files changed +11276
-3
lines changed Original file line number Diff line number Diff line change @@ -215,11 +215,11 @@ export default {
215
215
};
216
216
const validateAPIPath = (rule , value , callback ) => {
217
217
const result = value && value .trim ();
218
- const reg = / ^ \/ [\w _-] {3 ,199} $ / g ;
218
+ const reg = / ^ [\w _-] {4 ,199} $ / g ;
219
219
if (! reg .test (result)) {
220
220
callback (
221
221
new Error (
222
- " 支持英文、数字、下划线(_)、连字符(-),且只能以正斜线 (/)开头,不超过200个字符,如/user "
222
+ " 支持英文、数字、下划线(_)、连字符(-),且不能以正斜线 (/)开头,4到200个字符 "
223
223
)
224
224
);
225
225
} else {
@@ -507,11 +507,13 @@ export default {
507
507
let tmp = { ... item };
508
508
const { data , apiData } = payload;
509
509
if (tmp .isActive ) {
510
+ const newData = { ... apiData, id: data .id , path: apiData .apiPath };
510
511
tmp = {
511
512
... item,
512
513
apiName: data .name ,
513
514
id: data .id ,
514
- data: { ... apiData, id: data .id , path: apiData .apiPath }
515
+ data: newData,
516
+ originData: {... newData}
515
517
};
516
518
}
517
519
return tmp;
You can’t perform that action at this time.
0 commit comments