forked from x/ContextOS
fix open
Change-Id: I9a3b7a75b292bf306f3ab9ccad6c88254df34292
This commit is contained in:
parent
01da58e29d
commit
e24a5c440c
@ -973,7 +973,7 @@ var Index = &ctx.Context{Name: "web", Help: "应用中心",
|
|||||||
// 执行命令
|
// 执行命令
|
||||||
if order != "" || kit.Right(val["pre_run"]) {
|
if order != "" || kit.Right(val["pre_run"]) {
|
||||||
if list := m.Confv("auth", []string{m.Option("bench"), "data", "action", msg.Option("componet_name"), "cmd"}); list != nil && order == "" {
|
if list := m.Confv("auth", []string{m.Option("bench"), "data", "action", msg.Option("componet_name"), "cmd"}); list != nil && order == "" {
|
||||||
args = kit.Trans(list)
|
// args = kit.Trans(list)
|
||||||
}
|
}
|
||||||
|
|
||||||
if msg.Cmd(args); m.Options("bench") {
|
if msg.Cmd(args); m.Options("bench") {
|
||||||
|
@ -360,7 +360,7 @@ function choose() {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function open(event) {
|
function wopen(event) {
|
||||||
wx.openAddress({success: function(res) {
|
wx.openAddress({success: function(res) {
|
||||||
context.Command("show", res)
|
context.Command("show", res)
|
||||||
}})
|
}})
|
||||||
@ -369,7 +369,7 @@ function open(event) {
|
|||||||
<button onclick="scan(this)">scan</button>
|
<button onclick="scan(this)">scan</button>
|
||||||
<button onclick="choose(this)">choose</button>
|
<button onclick="choose(this)">choose</button>
|
||||||
<button onclick="close(this)">close</button>
|
<button onclick="close(this)">close</button>
|
||||||
<button onclick="open(this)">openaddress</button>
|
<button onclick="wopen(this)">openaddress</button>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{define "tail"}}
|
{{define "tail"}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user