草庐IT

current_direction

全部标签

解决Vue报错:Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location

问题描述:重复点击导航时,控制台出现报错,虽然不影响功能使用,但也不能坐视不管。解决Vue重复点击相同路由,出现Uncaught(inpromise)NavigationDuplicated:Avoidedredundantnavigation问题.报错内容:Uncaught(inpromise)NavigationDuplicated:Avoidedredundantnavigationtocurrentlocation:"/home".浏览器控制台·报错截图:解决方案:方案一:只需在router文件夹下,添加如下代码://src/router/index.jsVue.use(Router)

【解决方案】Collecting package metadata (current_repodata.json): failed

文章目录前言问题描述解决方案小结参考文献前言创作开始时间:2022年11月17日14:28:51如题,在运行condainstallpylint的时候碰到了这样的错误,这里探究一下解决方案。问题描述在cmd下运行:condainstallpylint-y,报错如下:C:\Users\apr>condainstall--nameaprpylint-yCollectingpackagemetadata(current_repodata.json):failedCondaHTTPError:HTTP000CONNECTIONFAILEDforurlhttps://mirrors.tuna.tsing

【解决方案】Collecting package metadata (current_repodata.json): failed

文章目录前言问题描述解决方案小结参考文献前言创作开始时间:2022年11月17日14:28:51如题,在运行condainstallpylint的时候碰到了这样的错误,这里探究一下解决方案。问题描述在cmd下运行:condainstallpylint-y,报错如下:C:\Users\apr>condainstall--nameaprpylint-yCollectingpackagemetadata(current_repodata.json):failedCondaHTTPError:HTTP000CONNECTIONFAILEDforurlhttps://mirrors.tuna.tsing

flex布局之flex-direction

一、flex布局的原理   1,flex是”flexibleBox”的缩写,意为”弹性布局”;   2.当我们为父盒子设为flex布局以后,子元素的float、clear和vertical-align属性将会失效。言而简之:flex布局原理就是通过给父盒子添加flex属性,来控制子盒子的位置和排列方式。二、flex布局父项常见属性flex-direction:设置主轴的方向justify-content:设置主轴上的子元素排列方式flex-wrap:设置子元素是否换行align-content:设置侧轴上的子元素的排列方式(多行)align-items:设置侧轴上的子元素的排列方式(单行)fl

flex布局之flex-direction

一、flex布局的原理   1,flex是”flexibleBox”的缩写,意为”弹性布局”;   2.当我们为父盒子设为flex布局以后,子元素的float、clear和vertical-align属性将会失效。言而简之:flex布局原理就是通过给父盒子添加flex属性,来控制子盒子的位置和排列方式。二、flex布局父项常见属性flex-direction:设置主轴的方向justify-content:设置主轴上的子元素排列方式flex-wrap:设置子元素是否换行align-content:设置侧轴上的子元素的排列方式(多行)align-items:设置侧轴上的子元素的排列方式(单行)fl

<router-view> can no longer be used directly inside <transition> or <keep-alive>.

百度翻译:<routerview>不能直接在<transition>或<keepalive>中使用。改用插槽道具:运行环境:"vue":"^3.2.8","vue-router":"^4.0.13"  触发警告代码:            keep包router 照着这个提示复制上去                                                

<router-view> can no longer be used directly inside <transition> or <keep-alive>.

百度翻译:<routerview>不能直接在<transition>或<keepalive>中使用。改用插槽道具:运行环境:"vue":"^3.2.8","vue-router":"^4.0.13"  触发警告代码:            keep包router 照着这个提示复制上去                                                

ES报错处理-mapper [xx.xx] of different type, current_type [text], merged_type [keyword]

背景我司有一套开源使用规范,衰退期的软件或版本需要升级到GA版本。我们ES服务端是6.8.x的,根据ES官方推荐版本,springdataelasticsearch使用的是3.2.x,配套的springboot版本为2.2.x.我们当前使用的版本已经比较老了,我们需要将springboot升级到2.6.x,并将springdataelasticsearch升级到4.3.x。因为高版本springdataelasticsearch的API有较大的改动,我们代码中用到API已经被删掉了,整改工作量非常大,因此决定先升级springboot到2.6.x,springdataelasticsearch

ES报错处理-mapper [xx.xx] of different type, current_type [text], merged_type [keyword]

背景我司有一套开源使用规范,衰退期的软件或版本需要升级到GA版本。我们ES服务端是6.8.x的,根据ES官方推荐版本,springdataelasticsearch使用的是3.2.x,配套的springboot版本为2.2.x.我们当前使用的版本已经比较老了,我们需要将springboot升级到2.6.x,并将springdataelasticsearch升级到4.3.x。因为高版本springdataelasticsearch的API有较大的改动,我们代码中用到API已经被删掉了,整改工作量非常大,因此决定先升级springboot到2.6.x,springdataelasticsearch

彻底解决Android Studio Minimum supported Gradle version is X.Y.Z. Current version is x.y.z.问题

文章目录1.Gradle插件版本2.Gradle版本3.Gradle与GradlePlugin兼容搭配4.我哪里寻找`Gradle`版本和`Gradleplugin`版本5.总结  由于AndroidStudio是基于Gradle编译的,面对众多的Gradle版本,类似于Android碎片化的概念,在编译项目上或多或少会存在兼容性问题。如题,MinimumsupportedGradleversionis6.1.1.Currentversionis5.6.4...,MinimumsupportedGradleversionis6.7.1.Currentversionis5.6.Ifusingth