refactor store

This commit is contained in:
pa
2026-03-10 15:25:23 +09:00
parent d7220baaf6
commit 95c4a1d3e6
82 changed files with 3243 additions and 3066 deletions

View File

@@ -1,14 +1,12 @@
<template>
<span @click="showUserDialog" class="cursor-pointer">{{ username }}</span>
<span @click="openUserDialog" class="cursor-pointer">{{ username }}</span>
</template>
<script setup>
import { ref, watch } from 'vue';
import { queryRequest } from '../api';
import { useUserStore } from '../stores';
const userStore = useUserStore();
import { showUserDialog } from '../coordinators/userCoordinator';
const props = defineProps({
userid: String,
@@ -40,9 +38,10 @@
/**
*
*/
function showUserDialog() {
userStore.showUserDialog(props.userid);
function openUserDialog() {
showUserDialog(props.userid);
}
watch([() => props.userid, () => props.location, () => props.forceUpdateKey], parse, { immediate: true });
</script>