Browse Source

调试修复规则引擎点击编辑之后跳转的页面流程id发生变化的bug

yanglzh 3 năm trước cách đây
mục cha
commit
c72041d362
2 tập tin đã thay đổi với 4 bổ sung3 xóa
  1. 2 1
      src/views/rule-engine/index.vue
  2. 2 2
      src/views/rule-engine/send.vue

+ 2 - 1
src/views/rule-engine/index.vue

@@ -79,7 +79,8 @@ const setStatus = (id: number, status: number) => {
 };
 
 const edit = async (row: any) => {
-	const url = window.location.protocol + '//' + window.location.hostname + ':1880/?access_token=' + Session.get('token') + '#/flow/' + row.flowId;
+	// const url = window.location.protocol + '//' + window.location.hostname + ':1880/#/flow/' + row.flowId +  '?access_token=' + Session.get('token') ;
+	const url = window.location.protocol + '//' + window.location.hostname + ':1880/?access_token=' + Session.get('token') + '#flow/' + row.flowId;
 	window.open(url);
 };
 

+ 2 - 2
src/views/rule-engine/send.vue

@@ -13,7 +13,7 @@
 						<el-icon>
 							<ele-FolderAdd />
 						</el-icon>
-						新增规则编排
+						新增数据转发
 					</el-button>
 				</el-form-item>
 			</el-form>
@@ -79,7 +79,7 @@ const setStatus = (id: number, status: number) => {
 };
 
 const edit = async (row: any) => {
-	const url = window.location.protocol + '//' + window.location.hostname + ':1880/?access_token=' + Session.get('token') + '#/flow/' + row.flowId;
+	const url = window.location.protocol + '//' + window.location.hostname + ':1880/?access_token=' + Session.get('token') + '#flow/' + row.flowId;
 	window.open(url);
 };