Commit cb127b93cba6497fd97157f40eeb467bfeeb0847

Authored by ww
1 parent 23de588e

fix: DEFECT-687 data component detail refresh will jump 404 page

@@ -49,6 +49,10 @@ export const useRedo = (_router?: Router) => { @@ -49,6 +49,10 @@ export const useRedo = (_router?: Router) => {
49 params['_redirect_type'] = 'path'; 49 params['_redirect_type'] = 'path';
50 params['path'] = fullPath; 50 params['path'] = fullPath;
51 } 51 }
  52 + // TODO DEFECT-687 teambition
  53 + if (fullPath.includes('/visual/board/detail/')) {
  54 + params['path'] = fullPath;
  55 + }
52 push({ name: REDIRECT_NAME, params, query }).then(() => resolve(true)); 56 push({ name: REDIRECT_NAME, params, query }).then(() => resolve(true));
53 }); 57 });
54 } 58 }
@@ -139,13 +139,14 @@ @@ -139,13 +139,14 @@
139 if (hasDetailPermission) { 139 if (hasDetailPermission) {
140 const boardId = encode(record.id); 140 const boardId = encode(record.id);
141 const boardName = encode(record.name); 141 const boardName = encode(record.name);
142 - router.push({  
143 - path: `/visual/board/detail/${boardId}/${boardName}`,  
144 - params: {  
145 - boardId: encode(record.id),  
146 - boardName: encode(record.name),  
147 - },  
148 - }); 142 + router.push(`/visual/board/detail/${boardId}/${boardName}`);
  143 + // router.push({
  144 + // name: 'visualBoardDetail'
  145 + // params: {
  146 + // boardId: encode(record.id),
  147 + // boardName: encode(record.name),
  148 + // },
  149 + // });
149 } else createMessage.warning('没有权限'); 150 } else createMessage.warning('没有权限');
150 }; 151 };
151 152