добавлена капча
This commit is contained in:
26
src/App.vue
26
src/App.vue
@@ -3,9 +3,8 @@ import { onMounted, ref, watch } from "vue";
|
||||
import My_naw from "./components/My_naw.vue";
|
||||
import Section from "./components/Section.vue";
|
||||
import Setings from "./components/Setings.vue";
|
||||
// import Status from "./components/Status.vue";
|
||||
import Authe from "./components/Authe.vue";
|
||||
// import axios from "axios";
|
||||
|
||||
|
||||
// Инициализация темы при загрузке приложения
|
||||
onMounted(() => {
|
||||
@@ -24,29 +23,6 @@ onMounted(() => {
|
||||
|
||||
// Состояния страницы и данные для входа
|
||||
const currentPage = ref("admin-panel");
|
||||
// const items = ref([]);
|
||||
// const items_status = ref([]);
|
||||
|
||||
// Универсальная функция для получения данных
|
||||
// const fetchData = async (url, targetRef) => {
|
||||
// try {
|
||||
// const { data } = await axios.get(url);
|
||||
// targetRef.value = data;
|
||||
// } catch (err) {
|
||||
// console.error(`Ошибка при получении данных с ${url}:`, err);
|
||||
// }
|
||||
// };
|
||||
|
||||
// const loadItems_status = () =>
|
||||
// fetchData("http://45.129.78.228:8002/records_all_status", items_status);
|
||||
|
||||
// onMounted(() => {
|
||||
// (loadItems(), loadItems_status());
|
||||
// (loadItems_status());
|
||||
// });
|
||||
|
||||
// watch(items, loadItems);
|
||||
// watch(items_status, loadItems_status);
|
||||
|
||||
function handleUpdate(newValue) {
|
||||
currentPage.value = newValue; // изменение значения в родителе
|
||||
|
||||
Reference in New Issue
Block a user