mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
opt some
This commit is contained in:
parent
bac4fa029e
commit
a0ddfb390d
@ -10,11 +10,10 @@ Volcanos("onaction", {help: "控件交互", list: [],
|
||||
},
|
||||
onclick: function(event, can) {
|
||||
if (can.Conf("name") == "添加") {
|
||||
setTimeout(async () => {
|
||||
const text = await navigator.clipboard.readText();
|
||||
console.log(text);
|
||||
navigator.clipboard.readText().then(function(text) {
|
||||
console.log(text)
|
||||
can.run(event, ["action", "insert", "paste", "", text], function() {})
|
||||
}, 20)
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user