commit for check working component

This commit is contained in:
Дмитрий Саенко 2025-09-30 12:39:40 +03:00
parent 7c6f9fcc60
commit c0ec0221e2

View file

@ -89,7 +89,24 @@
const app = new Vue({ const app = new Vue({
el: '#app', el: '#app',
data: { data: {
servers: [], servers: [
{
id: 1,
name: 'Server 1',
address: '127.0.0.1',
port: 8080,
apiKey: '1234567890',
enable: true
},
{
id: 2,
name: 'Server 2',
address: 'example.com',
port: 8081,
apiKey: '0987654321',
enable: false
}
],
modal: { modal: {
title: '', title: '',
server: { server: {
@ -102,15 +119,6 @@
} }
}, },
methods: { methods: {
loadServers() {
axios.get('{{.base_path}}server/list')
.then(response => {
this.servers = response.data.obj;
})
.catch(error => {
alert(error.response.data.msg);
});
},
showAddModal() { showAddModal() {
this.modal.title = 'Add Server'; this.modal.title = 'Add Server';
this.modal.server = { this.modal.server = {
@ -163,3 +171,4 @@
</script> </script>
{{template "footer" .}} {{template "footer" .}}