mirror of
https://github.com/netfun2000/rttys_zhaojh329.git
synced 2026-02-27 09:53:24 +08:00
feat: ui: add example for web proxy
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
This commit is contained in:
@@ -339,7 +339,7 @@ export default {
|
||||
|
||||
this.$Modal.confirm({
|
||||
render: h => {
|
||||
return h('Input', {
|
||||
const input = h('Input', {
|
||||
props: {
|
||||
value: addr,
|
||||
autofocus: true,
|
||||
@@ -350,7 +350,8 @@ export default {
|
||||
addr = val;
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
return h('div', [input, h('p', '127.0.0.1, 127.0.0.1:8080, http://127.0.0.1')]);
|
||||
},
|
||||
onOk: () => {
|
||||
const ipreg = /^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/
|
||||
|
||||
Reference in New Issue
Block a user