modified: .gitignore

This commit is contained in:
brusnitsyn
2026-04-21 10:08:14 +09:00
parent 0e8b6f61b4
commit 2041ab54ea
74 changed files with 7533 additions and 1544 deletions

View File

@@ -2,7 +2,7 @@
import {useAuthStore} from "../../Stores/auth.js";
import {NSelect, NFlex, NText} from 'naive-ui'
import {computed} from "vue";
import {router, useForm} from "@inertiajs/vue3";
import {useForm} from "@inertiajs/vue3";
const authStore = useAuthStore()
const userOptions = computed(() => {
@@ -18,15 +18,7 @@ const formRole = useForm({
role_id: authStore.user.role?.role_id
})
const onChangeRole = (roleId) => {
formRole.post('/user/role/change', {
onSuccess: () => {
router.visit(window.location.pathname, {
preserveScroll: true,
preserveState: false, // Это важно - сбрасывает состояние
only: ['user', 'auth'], // Указываем какие данные обновить
})
}
})
formRole.post('/user/role/change')
}
const themeOverride = {