E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
routes
微服务网关Gateway实现Host过滤
Host路由比如用户请求cloud.leon.com的时候,可以将请求路由给http://localhost:18081服务处理,如下配置:
routes
:-id:leon_goods_routeuri:
Leon_Jinhai_Sun
·
2023-08-01 15:38
Vue SPA 打包优化实践
官方文档//src/router/index.js...exportdefaultnewVueRouter({
routes
:[{path:'/',name:'Hello
Cocokai
·
2023-08-01 09:54
Gentoo网络配置
gentoo的网络配置文件只有一个,路径为/etc/conf.d/net编辑这个文件可以修改网卡端口参数#config_eno1="172.22.1.11/24"#
routes
_eno1="defaultvia172.22.1.254
谎言1107
·
2023-08-01 01:03
SpringCloud - Spring Cloud Alibaba 之 Gateway 集成Sentinel;SPI机制(十一)
阅读本文前可先参考SpringCloud-SpringCloud之Gateway网关(十三)_MinggeQingchun的博客-CSDN博客_spring.cloud.gateway.
routes
[0
MinggeQingchun
·
2023-07-30 07:07
SpringCloud
spring
cloud
gateway
sentinel
CORS
Flutter中Navigator 跳转传参数和反向传参数
初始化路由MaterialApp(
routes
:{"/Second":(BuildContextcontext){returnSecond("");}},跳转传参数Stringva=awaitNavigator.of
BianHuanShiZhe
·
2023-07-29 19:59
flutter
java
前端
Vue基础-路由
路由--按照path变换,router-view里面的组件变换创建一个路由对象VueRouter({
routes
:[]})挂载到我们vm上面router-view参数--获取路径后面的参数在路由规则
routes
慢慢慢热型
·
2023-07-29 09:22
Vue Router教程【超级详细】
Vue.js+VueRouter创建单页应用,感觉很自然:使用Vue.js,我们已经可以通过组合组件来组成应用程序,当你要把VueRouter添加进来,我们需要做的是,将组件(components)映射到路由(
routes
Orz=T_T
·
2023-07-29 04:42
Vue
vue.js
javascript
前端
vue-router源码解析
constructor(){this.current=null;}}classvueRouter{constructor(options){this.mode=options.mode||'hash';this.
routes
牛油果大虾
·
2023-07-28 07:11
路由的query/params/props三种传参方式
跳转跳转2.接收参数:```clike```js$route.query.id$route.query.title3.路由规则exportdefaultnewVueRouter({
routes
:[{path
超级西红柿鸡蛋面
·
2023-07-28 05:08
前端
vue
怎样实现路由封装
你可以命名这个文件为
routes
.js或者router.js。导入路由库:根据你选择的路由库,导入相应的库
无人与我粥可温
·
2023-07-28 05:54
javascript
vue项目中动态加载路由组件this.$route undefined
在项目中偶然间遇到了这样的问题,
routes
注册设置的时候使用了懒加载的方式,如下:
routes
:[{path:'/',name:'index',//component:index//方式1component
吼不平
·
2023-07-27 20:28
flask实现一个登录界面
routes
.py:定义应用的路由和视图函数的文件。__init__.py:创建并初始化Flask应用的文件。run.py:启动应用的文件。
菜鸟小超
·
2023-07-27 18:24
flask
python
flask
python
后端
vue-router中scrollBehavior的用法
当创建一个Router实例,你可以提供一个scrollBehavior方法:constrouter=newVueRouter({
routes
:[...]
pillowss
·
2023-07-27 17:33
vue
vue.js
前端
javascript
[vue-router] Non-nested
routes
must include a leading slash character. Fix t
警告:[vue-router]Non-nestedroutesmustincludealeadingslashcharacter.Fixt意思:大概意思是非嵌套路由必须包含一个前导斜杠字符。于是我在在定义路由路径path处修改了一下,解决成功!即:在填写path时,前面需要将添加一个斜杠字符
亦向枫
·
2023-07-27 04:26
报错总结
vue.js
前端
javascript
vue子路由路径写/和不写/的差别
的时候子路由写不写/都可以importVuefrom'vue'importVueRouterfrom'vue-router'Vue.use(VueRouter)constrouter=newVueRouter({
routes
沉迷...
·
2023-07-27 00:48
vue
vue.js
前端
前端框架
springcloud gateway404问题
在配置之前最后发现discovery位置写错了,应该写在和
routes
一个级别下,我真是服了Parameter0ofmethodmodifyRequestBodyGatewayFilterFactoryinorg.springframework.cloud.gateway.config.GatewayAutoConfigurationrequiredabeanoftype
猹里。
·
2023-07-26 19:30
springcloud
gateway404问题
java
vue-router的使用(一)声明式/编程式
vue-router的使用有两种方式:image.png声明式使用点击跳转使用显示路由页面的信息letroute=newVueRouter({
routes
:[{path:'/',name:'home',
尤樊容
·
2023-07-26 09:28
Vue 编程式导航
$router.push({name:'Home'})//这个name就是router/index.js中
routes
对象路由定义的name,命名式导航#router.replacereplace方法跟
KK_boy
·
2023-07-26 02:04
UNI-APP_uni-app获取当前页面路由,uni-app获取当前url地址参数
letroutes=getCurrentPages();//获取当前打开过的页面路由数组letcurRoute=
routes
[
routes
.length-1].route//获取当前页面路由letcurParam
小歪 | 前端
·
2023-07-25 21:05
#
UNI-APP
YAMLException: end of the stream or a document separator is expected at line 2, column 8:
react导航守卫这种用法/**title:用户中心*
Routes
:*-./
routes
/PrivateRoute.js*///必须复合yaml语法改成,注意空格!!!!
qq_21138747
·
2023-07-25 16:44
node+vue3+websocket实现简易的聊天功能
编写后台代码接口简单逻辑说明:1.创建连接2.每个用户都有一个conn那把conn存入到数组里方便以后广播所接受到的消息,去传达到其他用户3.对用户数量做一个统计4.接收到前端传来设置的用户名代码如下:在
routes
没脾气的猫
·
2023-07-25 15:51
websocket
vue
node.js
typescript
html5
anti-design-vue
express
Spring-Cloud-Gateway如何自定义路由过滤器?
我们知道网关的一个重要的作用就是路由转发,路由表的配置大概是这个样子:spring:cloud:gateway:
routes
:-id:user-serviceuri:http://localhost:8081predicates
若鱼1919
·
2023-07-24 21:17
gateway
java
spring
spring-cloud-starter-gateway 4.0.6负载均衡失败
spring:application:name:gatewaycloud:gateway:
routes
:-id:memberuri:lb://memberpredicates:-Path=/member
坤了
·
2023-07-24 20:52
gateway
java
前端
uni-app如何获取当前页面路由(整个页面对象)?如何获取前一个甚至已经打开的页面路由?
先获取所有数组,然后取最后一个数组,再去获取路由,当然还有其他的属性可以使用,可自行打印查看letroutes=getCurrentPages();//获取当前打开过的页面路由数组letcurRoute=
routes
周小航.
·
2023-07-24 18:01
前端
vite/vue3打包后运行
hashconstrouter=createRouter({//history:createWebHistory(),history:createWebHashHistory(),//改为这种HASH路由模式
routes
岁月如歌_
·
2023-07-24 13:23
vue.js
前端
javascript
Vue中路由传参后刷新页面导致参数失效的解决办法
一、修改路由
routes
:[{path:'/list/:id',name:'list'}]二、传参跳转this.
仇少斐
·
2023-07-24 09:11
Ubuntu21.04 固定静态IP地址
network-manager-all.yaml2、添加已下内容:network:ethernets:ens33:dhcp4:nodhcp6:noaddresses:-192.168.1.222/24
routes
cyz141001
·
2023-07-23 22:05
#
ubuntu
ubuntu
vue Router 路由组件传参
用法如下:props为布尔值constUser={props:['id'],template:'User{{id}}'}constrouter=newVueRouter({
routes
:[{path:'
蜕变最美的你
·
2023-07-23 07:29
常见命令
测试代码是否正确bundleexecraketest设置根路由修改config文件夹下的
routes
.rb文件root'static_pages#home'注:static_pages#home为页面路径
Shorebloom_59f6
·
2023-07-22 21:31
路由元信息
定义路由的时候可以配置meta字段exportdefaultnewRouter({
routes
:[{path:'/',component:Index,meta:{title:'裂变商城-管理后台',allowBack
紫气楠楠
·
2023-07-22 01:38
vue 动态路由匹配(页面跳转到同一个页面)
vue-router的路由路径中使用“动态路径参数”(dynamicsegment)来达到这个效果:constUser={template:'User'}constrouter=newVueRouter({
routes
逆风优雅
·
2023-07-22 00:33
开发小技巧总结
vue.js
javascript
前端
vue---router、
routes
、route的区别
router、
routes
、route的区别1.router:路由器对象(new的路由器对象),包含一些操作路由的功能函数,来实现编程式导航。一般指的是在任何组件内访问路由。
muzidigbig
·
2023-07-21 22:23
vuejs
router
routes
route
router
routes
route的区别
vue-router
Gin+Gorm开发项目之项目结构
toml、yaml等等├──controllers#控制器目录│└──IndexController.go├──models#模型目录│├──AppModel.go│└──UserModel.go├──
routes
陌北v1
·
2023-07-21 21:10
golang
golang
gin
数据库
1024程序员节
vue路由router,
routes
,route
SEO:搜索引擎优化,前端路由:控制页面访问路径,单页面应用后端路由:控制接口一,实现前端路由的两种方式:1,URL的hash,location.hash2,HTML5的history模式,history.pushState(data,title,url)二,router里的index.js文件使用vuecreate'文件名',创建一个vue脚手架,vuecreate文件名vue.use(VueR
FD__f392
·
2023-07-21 20:12
两个umijs/max项目使用微前端简单示例
qiankun插件)主应用.umirc.ts中defineConfigqiankun:{master:{apps:[{name:'app1',entry:'//localhost:8000',},],},},
routes
KAGHQ
·
2023-07-21 20:27
总结
前端
vue国际化实战
i18nnpmivue-i18n--savee新建文件src目录下新建一个lang文件夹,在lang文件下面新建三个文件分别是index.js,en_US.js,zh_CN.js//en_US.js文件exportdefault{
routes
神话降临
·
2023-07-20 22:39
SpringCloud Gateway路由失败, 报错503的解决方法
SpringCloudGateway路由失败,报错503的解决方法网关服务配置:spring:cloud:gateway:
routes
:-id:xxxuri:lb://xxxpredicates:-Path
KobeSacre
·
2023-07-20 13:15
Java
Spring
报错
spring
cloud
gateway
spring
初学vue-router笔记2
下面来尝试一下1.app.vue中添加两个router-link1234562.router.js中添加动态
routes
{/*新
云小诺
·
2023-07-20 05:37
Vue中views和components文件夹的区别
这些路线通常位于src/router/
routes
.js位于下方的组件src/components不太可能在一条路线中使用,而位于下方的组件src/views将被至少一条路线使用。我认为这更多是
longfei815
·
2023-07-20 05:35
前端基础知识
vue.js
javascript
前端
【react】react18的学习(十)–路由react-router-dom@6
所有路由配置都在一个根组件内编写,子组件路由在路由标签插槽里写,不在去子组件内单独配置;importReactfrom'react'import{HashRouter,Navigate,NavLink,Route,
Routes
ANKG
·
2023-07-20 02:20
react
react.js
学习
数学建模
【svelte】A11y: <div> with click handler must have an ARIA role;A11y: non-interactive elements
问题描述svelte项目跑起来的时候,控制台打印以下警告:[vite-plugin-svelte]/src/
routes
/+page.svelte:50:8A11y:visible,non-interactiveelementswithanon
小五Five
·
2023-07-19 11:42
svelte
前端
javascript
前端框架
深入浅出 Laravel 路由执行原理
路由加载原理这节我们将重点讲解如何加载我们在
routes
目录下的定义的web.php路由配置文件(仅考虑典型的Web应用)。预备知识通过之前L
supwlz
·
2023-07-19 01:14
php
laravel
路由
【Vue3】路由怎么切换成 history 模式
createWebHistory,createRouter}from"vue-router";//1constrouter=createRouter({history:createWebHistory(),//2
routes
Sparks67
·
2023-07-19 01:30
Vue
使用Laravel Passport做Api认证(二)——自定义路由配置
我们来看看Passport的注册路由函数Passport::
routes
()vendor/laravel/passport/src/Passport.php/***BindsthePassportroutesintothecontroller
CodingLady
·
2023-07-18 21:00
[ruby on rails] rails中使用graphQL
自己用来测试的group:developmentdogem'graphiql-rails'endgem'graphql'2.使用命令生成模板文件railsggraphql:install在APIonly中,
routes
微信-since81192
·
2023-07-18 18:46
ruby
on
rails
graphql
后端
vue cli4打包不出现东西,或者空白
constrouter=newVueRouter({//mode:'history',base:process.env.BASE_URL,
routes
})exportdefaultrouter1、将路由器这里注释掉
deanwin
·
2023-07-18 06:17
spring cloud zuul路由网关 session不一致问题
zuul.
routes
.api-a.sensitiveHeaders="*"
咸鱼巴巴_888
·
2023-07-18 06:34
微服务
zuul
springcloud
PHP Laravel 路由、中间件、数据库等例子
以下是使用Laravel框架时的一些常见示例:1.路由(
Routes
)://定义基本路由Route::get('/home','HomeController@index');//带有参数的路由Route
田猿笔记
·
2023-07-18 00:17
PHP
php
laravel
中间件
2019-08-17
index.jsindex.js里的内容:importVuefrom'vue'importVueRouterfrom'vue-router'Vue.use(VueRouter)constrouter=newVueRouter({
routes
零下15_641b
·
2023-07-17 15:01
Vue性能优化方法?
路由懒加载constrouter=newVueRouter({
routes
:[{path:'/foo',component:()=>import('.
Viewwei
·
2023-07-16 08:17
上一页
6
7
8
9
10
11
12
13
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他