在我的react应用程序中,左上角的定时是隐藏应用程序中的内容,而我不知道如何删除它。

这是我截断的Gemfile。这与时间无关。
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby '2.7.2'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 6.1.0'
# Use sqlite3 as the database for Active Record
gem 'sqlite3', '~> 1.4'
# Use Puma as the app server
gem 'puma', '~> 5.0'
# Use SCSS for stylesheets
gem 'sass-rails', '>= 6'
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
gem 'webpacker', '~> 5.0'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.7'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 4.0'
# Use Active Model has_secure_password
# gem 'bcrypt', '~> 3.1.7'
group :development do
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
gem 'web-console', '>= 4.1.0'
# Display performance information such as SQL time and flame graphs for each request in your browser.
# Can be configured to work on production as well see: https://github.com/MiniProfiler/rack-mini-profiler/blob/master/README.md
gem 'rack-mini-profiler', '~> 2.0'
end发布于 2021-01-06 17:55:34
这是由gem rack-mini-profiler提供的,它实际上有许多用于调试sql查询的有用信息。如果您不需要它,只需删除该行或将其注释掉,然后再次运行bundle install。
# Comment out or remove line completely
# gem 'rack-mini-profiler'在控制台/终端中
bundle install...and终于不忘重启服务器了。
发布于 2021-02-16 02:22:37
我同意,它在一个可怕的位置,谢天谢地,你可以用config/initializers/中的初始化器来改变它的位置
https://github.com/MiniProfiler/rack-mini-profiler#configuration-options
Rack::MiniProfiler.config.position = 'bottom-right'发布于 2021-07-15 11:55:42
详述胖蛙的答案:你可以把它移到另一个角落。你的选项是“右上”、“左上”、“右下”或“左下”。在您的项目中,在config/initializers中创建一个名为mini-profiler.rb的文件,并添加以下内容:
Rack::MiniProfiler.config.position = 'bottom-left'重新启动服务器并请求一个页面。
有关更多信息,请参阅此链接https://stackify.com/rack-mini-profiler-a-complete-guide-on-rails-performance/
https://stackoverflow.com/questions/65589200
复制相似问题