@mybricks/sdk-for-app
Advanced tools
Comparing version 0.0.23 to 0.0.24
{ | ||
"name": "@mybricks/sdk-for-app", | ||
"version": "0.0.23", | ||
"version": "0.0.24", | ||
"description": "SDK for application UI", | ||
@@ -5,0 +5,0 @@ "main": "index.min.js", |
@@ -75,7 +75,7 @@ import axios from 'axios'; | ||
}).then(({ data }) => { | ||
const { code } = data ?? {}; | ||
const { code, msg, message } = data ?? {}; | ||
if (code === API_CODE.SUCCESS) { | ||
return true | ||
} else { | ||
throw new Error('执行系统任务失败') | ||
throw new Error(msg || message || '执行任务失败') | ||
} | ||
@@ -82,0 +82,0 @@ }) |
@@ -10,3 +10,3 @@ import { ReactElement } from "react"; | ||
children: ReactElement; | ||
extName: "pc-page" | "cloud-com" | "material"; | ||
extName: "pc-page" | "cloud-com" | "mybricks-material" | "string"; | ||
className?: string; | ||
@@ -13,0 +13,0 @@ // 应用空间 |
Sorry, the diff of this file is not supported yet
13343
431