20 lines
608 B
JavaScript
20 lines
608 B
JavaScript
Vue.component("server-config-copy-link", {
|
|
props: ["v-server-id", "v-config-code"],
|
|
data: function () {
|
|
return {
|
|
serverId: this.vServerId,
|
|
configCode: this.vConfigCode
|
|
}
|
|
},
|
|
methods: {
|
|
copy: function () {
|
|
teaweb.popup("/servers/server/settings/copy?serverId=" + this.serverId + "&configCode=" + this.configCode, {
|
|
height: "25em",
|
|
callback: function () {
|
|
teaweb.success("复制成功")
|
|
}
|
|
})
|
|
}
|
|
},
|
|
template: `<a href=\"" class="item" @click.prevent="copy" style="padding-right:0"><span style="font-size: 0.8em">批量</span> <i class="icon copy small"></i></a>`
|
|
}) |