@freelog/tools-lib 0.1.160 → 0.1.162

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -127,7 +127,7 @@ export async function request(config: AxiosRequestConfig, {
127
127
  // console.log(result, 'response');
128
128
  // const {data} = response;
129
129
  // console.log(result, 'result90iowjksdfjlsdkj')
130
- if (result.ret === 0 && result.errCode === 30 && !noRedirect) {
130
+ if (result.errCode=== 30 && !noRedirect) {
131
131
  await FServiceAPI.User.logout();
132
132
  window.location.replace(`${completeUrlByDomain('user')}${LinkTo.login({goTo: window.location.href})}`);
133
133
  } else if (result.ret === 4 && result.errCode === 10 && !noRedirect) {
@@ -187,10 +187,11 @@ export function nodeManagement({nodeID, showPage = 'exhibit', ...params}: NodeMa
187
187
  // 展品管理
188
188
  interface ExhibitManagementParamsType {
189
189
  exhibitID: string;
190
+ openAuthDrawer?: boolean
190
191
  }
191
192
 
192
- export function exhibitManagement({exhibitID}: ExhibitManagementParamsType): TReturnType {
193
- return `/node/exhibit/formal/${exhibitID}`;
193
+ export function exhibitManagement({exhibitID, openAuthDrawer}: ExhibitManagementParamsType): TReturnType {
194
+ return `/node/exhibit/formal/${exhibitID}${handleQuery({openAuthDrawer})}`;
194
195
  }
195
196
 
196
197
  // 测试节点管理
@@ -9,7 +9,7 @@ export const RESOURCE_TYPE: RegExp = new RegExp('^[\u4e00-\u9fefa-zA-Z0-9\\-&.,]
9
9
 
10
10
  // 自定义属性键
11
11
  // export const CUSTOM_KEY: RegExp = new RegExp(/^[a-zA-Z_]([a-zA-Z0-9_]{1,19})?$/);
12
- export const CUSTOM_KEY: RegExp = new RegExp('^[a-zA-Z]([a-zA-Z0-9_]{1,19})?$');
12
+ export const CUSTOM_KEY: RegExp = new RegExp('^[a-zA-Z]([a-zA-Z0-9_]{1,29})?$');
13
13
 
14
14
  // 节点名称
15
15
  export const NODE_NAME: RegExp = new RegExp(/^[\u4E00-\u9FA5|a-zA-Z0-9]{2,24}$/);