Wzyyy98 3 年之前
父节点
当前提交
276853f6bd
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      src/pages/link/AccessConfig/Detail/components/Network/index.tsx

+ 6 - 2
src/pages/link/AccessConfig/Detail/components/Network/index.tsx

@@ -170,7 +170,11 @@ const Network = (props: Props) => {
                     type="link"
                     onClick={() => {
                       const url = getMenuPathByCode(MENUS_CODE['link/Type/Detail']);
-                      const tab: any = window.open(`${origin}/#${url}`);
+                      const tab: any = window.open(
+                        `${origin}/#${url}?type=${
+                          NetworkTypeMapping.get(props.provider?.id) || ''
+                        }`,
+                      );
                       tab!.onTabSaveSuccess = (value: any) => {
                         if (value.status === 200) {
                           setNetworkCurrent(value.result?.id);
@@ -181,7 +185,7 @@ const Network = (props: Props) => {
                       };
                     }}
                   >
-                    创建接入方式
+                    去新增
                   </Button>
                 )}
               </span>