Code Monkey home page Code Monkey logo

Comments (3)

jsers avatar jsers commented on August 24, 2024

from fe.

janusda avatar janusda commented on August 24, 2024

后端项目我也看过了, 因为不需要匿名datasource接口, 这个配置下返回401是正常的.
我目前的解决方案是在
App.tsx useEffect里修改 const datasourceList = isLoginPage ? [] : await getDatasourceBriefList();,
重新构建就正常了.
(ps: 上面第二张贴图代码是我修改过的, "if (location.pathname == '/login') " 原本代码是没有, 我截错图了)

from fe.

janusda avatar janusda commented on August 24, 2024

这个似乎不是前端项目问题 可以在 https://github.com/ccfos/nightingale/issues 这里提下 Janus @.> 于2023年8月24日周四 11:38写道:

后端 AnonymousAccess.PromQuerier=false, — Reply to this email directly, view it on GitHub <#69>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYUU6UNWCDWMGKT5E5DBK3XW3ECZANCNFSM6AAAAAA34L5C2I . You are receiving this because you are subscribed to this thread.Message ID: @.
>

登录页面不需要拉取 /api/n9e/datasource/brief的接口, 但目前登录页面都会调用到useEffect函数, 里面就会引用到该接口

from fe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.