fagongzi / gateway-ui-vue Goto Github PK
View Code? Open in Web Editor NEWgateway ui by element ui
License: Apache License 2.0
gateway ui by element ui
License: Apache License 2.0
一个小小的建议:如果想吸引更多的人参与、使用、加星星✨,可以在Readme添加部分预览截图。
要使用一种webui工具,开始总要看一眼部署完会是什么样子~
app.4d269715.js:1 Uncaught TypeError: Cannot read property 'zh' of undefined
at Module.Vtdi (app.4d269715.js:1)
at h ((index):4)
at c ((index):4)
at Array.n [as push] ((index):4)
at app.4d269715.js:1
v3.0
来谈谈如何做吧
在数据缓存模块,当设置匹配规则或者关键词为PathValue时,提示
http://example.com/path1/path2/path3?xxx=aa,填写1匹配path1,2匹配path2,3匹配path3
gateway中取PathValue时使用的代码:
`
func getPathValue(idx int, req *fasthttp.Request) string {
path := hack.SliceToString(req.URI().Path()[1:])
values := strings.Split(path, "/")
if len(values) <= idx {
return ""
}
return values[idx]
}
`
可知index起始位置不一致
建议修改提示文案为
http://example.com/path0/path1/path2?xxx=aa,填写0匹配path0,1匹配path1,2匹配path2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.