+-----------+--------------------+--------------+----------+
| option_id | option_name | option_value | autoload |
+-----------+--------------------+--------------+----------+
| 1 | users_can_register | 1 | yes |
+-----------+--------------------+--------------+----------+
| 2 | posts_per_page | 5 | yes |
+-----------+--------------------+--------------+----------+
ul {
list-style:none;
margin:0px;
padding:0px;
display:flex;
flex-direction:row;
}ul {
list-style:none;
margin:0px;
padding:0px;
display:flex;
flex-direction:column;
}
error: function (err) {
app.errors = err.response.data.errors;
},err.response.data.errors;. app.errors это объект errors и вашего data(). То есть в него мы запишем наши ошибки: app.errors = err.response.data.errors;, то есть теперь у нас в компоненте есть возможность вывести ошибки: {{errors}}, то так как это объект, то мы его просто выводим через цикл:<div v-if="errors" v-for="category in errors">
<div class="m-alert m-alert--outline alert alert-danger alert-dismissible" role="alert" v-for="error in category">
<span>{{ error }}</span>
</div>
</div>.catch(function (error) {
console.log(error.response.data);.catch((error)=> {
this.errors = error.response.data;
}
$a = $c; $b = $c;но зачем, если можно написать$a = $b = $c; так же как и в математике вы пишите: x = y = 5;