Skip to content

Commit

Permalink
[type:fix] fix call getUserPermissionByToken without token when start…
Browse files Browse the repository at this point in the history
…up (#492)
  • Loading branch information
VampireAchao authored Nov 6, 2024
1 parent 6d29be4 commit ae241b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default {
const namespaceId = yield select(
({ global }) => global.currentNamespaceId,
);
if (namespaceId) {
if (token && namespaceId) {
const params = { token, namespaceId };
const json = yield call(getUserPermissionByToken, params);
if (json.code === 200) {
Expand Down

0 comments on commit ae241b2

Please sign in to comment.