fixed faq bugs
This commit is contained in:
+4
-3
@@ -285,8 +285,8 @@
|
||||
class="py-[2vw] md:py-0 text-[17.72px] md:text-[1.502vw] text-[#383E43] mt-[0.417vw]"
|
||||
>
|
||||
|
||||
<span v-if="profileName">
|
||||
{{profileName}}
|
||||
<span v-if="authUser.name">
|
||||
{{authUser.name}}
|
||||
</span>
|
||||
|
||||
<span v-else>کاربر</span>
|
||||
@@ -348,10 +348,11 @@
|
||||
|
||||
<script setup>
|
||||
const {data, refresh} = await useFetch('/api/auth/me')
|
||||
const profileName = useState('profileName', () => data.value.name)
|
||||
|
||||
import { useToast } from 'vue-toastification'
|
||||
const toast = useToast()
|
||||
const {authUser} = useAuth();
|
||||
|
||||
async function logout(){
|
||||
await useFetch('/api/auth/logout', {
|
||||
headers : useRequestHeaders(['cookie']),
|
||||
|
||||
Reference in New Issue
Block a user