2.0.1 • Published 11 months ago

asgard-fe-core v2.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

阿斯加德平台前端项目的核心框架

/**系统设置 */
export let SystemSettings = {
   /**认证失败跳转的地址,默认跳转至到根 */
   LoginPageAddress: window.location.origin,
   /**本地的商户信息缓存key */
   LSKey_TenantInfo: "tenantInfo",
   /**菜单缓存key */
   LSKey_TenantMenus: "menus",
   /**我的信息缓存key */
   LSKey_MineUserInfo: "mineInfo",
   /**商户API缓存key */
   LSKey_TenantApiInfo: "apiInfo",
};
/**
* 构造一个微信登陆二维码地址
* @param wechatAppID 微信ID
* @param redirectUrl 重定向地址
* @param styleStr 二维码样式字符串 例如: .impowerBox .qrcode {width: 224px;border:none;}\n.impowerBox .title {display: none;}\n.impowerBox .info {display:none;}
* @returns 往Iframe里头放的src
*/
export const GetWechatLoginQRCode = (wechatAppID: string, redirectUrl: string, styleStr: string)
/**判定某个返回是不是某个code */
export const Is = (data: DataResponse<any>, code: ResponseCodeEnum): boolean 
/**直接判定返回是不是成功 */
export const IsSuccess = (data: DataResponse<any>): boolean 
/**生成一个GUID */
export const GetGuid = (): string 
2.0.1

11 months ago