You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
338 B
17 lines
338 B
"use strict";
|
|
const common_vendor = require("../common/vendor.js");
|
|
function useCopy() {
|
|
const copy = (text) => {
|
|
try {
|
|
common_vendor.index.setClipboardData({
|
|
data: String(text)
|
|
});
|
|
} catch (error) {
|
|
common_vendor.index.$u.toast(error);
|
|
}
|
|
};
|
|
return {
|
|
copy
|
|
};
|
|
}
|
|
exports.useCopy = useCopy;
|
|
|