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 {
215215 };
216216 const validateAPIPath = (rule , value , callback ) => {
217217 const result = value && value .trim ();
218- const reg = / ^ \/ [\w _-] {3 ,199} $ / g ;
218+ const reg = / ^ [\w _-] {4 ,199} $ / g ;
219219 if (! reg .test (result)) {
220220 callback (
221221 new Error (
222- " 支持英文、数字、下划线(_)、连字符(-),且只能以正斜线 (/)开头,不超过200个字符,如/user "
222+ " 支持英文、数字、下划线(_)、连字符(-),且不能以正斜线 (/)开头,4到200个字符 "
223223 )
224224 );
225225 } else {
@@ -507,11 +507,13 @@ export default {
507507 let tmp = { ... item };
508508 const { data , apiData } = payload;
509509 if (tmp .isActive ) {
510+ const newData = { ... apiData, id: data .id , path: apiData .apiPath };
510511 tmp = {
511512 ... item,
512513 apiName: data .name ,
513514 id: data .id ,
514- data: { ... apiData, id: data .id , path: apiData .apiPath }
515+ data: newData,
516+ originData: {... newData}
515517 };
516518 }
517519 return tmp;
You can’t perform that action at this time.
0 commit comments