Initial commit (code only without large binaries)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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>`
|
||||
})
|
||||
Reference in New Issue
Block a user