From 522ab5e2bb8a0142373e366feaf10bfaae60c664 Mon Sep 17 00:00:00 2001 From: Jianhui Zhao Date: Mon, 9 May 2022 15:15:49 +0800 Subject: [PATCH] feat: ui: add example for web proxy Signed-off-by: Jianhui Zhao --- ui/src/views/Home.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/src/views/Home.vue b/ui/src/views/Home.vue index 7663e8d..3f2b03a 100644 --- a/ui/src/views/Home.vue +++ b/ui/src/views/Home.vue @@ -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])$/