Comments (3)
from fe.
后端项目我也看过了, 因为不需要匿名datasource接口, 这个配置下返回401是正常的.
我目前的解决方案是在
App.tsx useEffect里修改 const datasourceList = isLoginPage ? [] : await getDatasourceBriefList();
,
重新构建就正常了.
(ps: 上面第二张贴图代码是我修改过的, "if (location.pathname == '/login') " 原本代码是没有, 我截错图了)
from fe.
这个似乎不是前端项目问题 可以在 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)
- npm run build编译报错
- 前端项目单独部署访问报错 HOT 4
- [v7] build error HOT 1
- https://registry.nlark.com/d3-timer/download/d3-timer-1.0.10.tgz failed, reason: getaddrinfo ENOTFOUND registry.nlark.com HOT 9
- edge 节点启动无法访问 404 page not found HOT 2
- 怎么将前端独立运行 HOT 3
- 前端v7.0.0-beta.4 版本编译报错 HOT 3
- 添加 仪表盘 类型的图表内容显示不全 HOT 2
- 【告警规则配置】先修改Metric部分后再去修改Hots部分,保存会丢失Metric部分,切换标签也会丢失之前改的信息 HOT 3
- 需求:集成仪表盘中能添加全屏展示操作么 HOT 4
- i18n国际化,我安装了vscode i18n Ally 插件,但是代码中的t(xxx)一直不显示中文,i8n ally插件也开启了ts支持,路径也配置的正确,请问下如可以在代码中正确显示中文内容 HOT 4
- 仪表盘中 关于 时间选择 HOT 8
- 建议:可视化面板添加“一键折叠所有分组”的功能 HOT 5
- 本地部署运行报错:Unexpected token '<', "<!-- ~ C"... is not valid JSON HOT 3
- 建议:页面跳转支持组合键新窗口弹出 HOT 2
- npm build error HOT 2
- 日志分析界面优化 HOT 5
- 正式版本7.0表格部分列显示不正常 HOT 15
- 7版本的模版中心里,点击任一模版,页面空白 HOT 2
- 建议将反馈的图标改成可以移动的。
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fe.