@mu-cabin/opms-permission 0.8.16 → 0.8.18
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.
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -208,7 +208,7 @@ axiosClient.interceptors.response.use(
|
|
208
208
|
(response) => {
|
209
209
|
const res = response.data;
|
210
210
|
const { success, code, msg } = res;
|
211
|
-
if (
|
211
|
+
if (success === false) {
|
212
212
|
return Promise.reject({
|
213
213
|
code,
|
214
214
|
msg
|
@@ -247,7 +247,7 @@ async function queryResource(baseUrl, params) {
|
|
247
247
|
}
|
248
248
|
async function getUserOrgTree(baseUrl) {
|
249
249
|
return await axiosClient.post(
|
250
|
-
`${baseUrl}/user/
|
250
|
+
`${baseUrl}/user/orgTree`
|
251
251
|
);
|
252
252
|
}
|
253
253
|
async function queryOrgCompanies(baseUrl, params) {
|
package/dist/index.mjs
CHANGED
@@ -169,7 +169,7 @@ axiosClient.interceptors.response.use(
|
|
169
169
|
(response) => {
|
170
170
|
const res = response.data;
|
171
171
|
const { success, code, msg } = res;
|
172
|
-
if (
|
172
|
+
if (success === false) {
|
173
173
|
return Promise.reject({
|
174
174
|
code,
|
175
175
|
msg
|
@@ -208,7 +208,7 @@ async function queryResource(baseUrl, params) {
|
|
208
208
|
}
|
209
209
|
async function getUserOrgTree(baseUrl) {
|
210
210
|
return await axiosClient.post(
|
211
|
-
`${baseUrl}/user/
|
211
|
+
`${baseUrl}/user/orgTree`
|
212
212
|
);
|
213
213
|
}
|
214
214
|
async function queryOrgCompanies(baseUrl, params) {
|