This is an automated email from the ASF dual-hosted git repository.

liuhongyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new ae241b29 [type:fix] fix call getUserPermissionByToken without token 
when startup (#492)
ae241b29 is described below

commit ae241b29782efc76cc2d1656347ffab126a4142d
Author: VampireAchao <[email protected]>
AuthorDate: Wed Nov 6 17:24:35 2024 +0800

    [type:fix] fix call getUserPermissionByToken without token when startup 
(#492)
---
 src/models/global.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/models/global.js b/src/models/global.js
index 7ea50eb4..03d853b5 100644
--- a/src/models/global.js
+++ b/src/models/global.js
@@ -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) {

Reply via email to