revert allDateOfActivity reactive change back to ref

This commit is contained in:
pa
2025-10-30 15:17:33 +09:00
committed by Natsumi
parent 6de8d7467e
commit 050bf8653c
3 changed files with 2 additions and 9 deletions

View File

@@ -94,9 +94,6 @@
}
async function addNote(userId, note) {
if (userDialog.value.id === userId) {
userDialog.value.noteSaving = true;
}
const args = await miscRequest.saveNote({
targetUserId: userId,
note
@@ -115,7 +112,6 @@
}
if (targetUserId === userDialog.value.id) {
if (_note === args.params.note) {
userDialog.value.noteSaving = false;
userDialog.value.note = _note;
} else {
// response is cached sadge :<

View File

@@ -182,7 +182,6 @@ export const useUserStore = defineStore('User', () => {
friend: {},
isFriend: false,
note: '',
noteSaving: false,
incomingRequest: false,
outgoingRequest: false,
isBlock: false,
@@ -670,7 +669,6 @@ export const useUserStore = defineStore('User', () => {
if (D.visible && D.id === ref.id) {
D.ref = ref;
D.note = String(ref.note || '');
D.noteSaving = false;
D.incomingRequest = false;
D.outgoingRequest = false;
if (D.ref.friendRequestStatus === 'incoming') {
@@ -715,7 +713,6 @@ export const useUserStore = defineStore('User', () => {
D.treeData = [];
D.memo = '';
D.note = '';
D.noteSaving = false;
getUserMemo(userId).then((memo) => {
if (memo.userId === userId) {
D.memo = memo.memo;

View File

@@ -8,7 +8,7 @@ import { getWorldName } from '../../../shared/utils';
export function useInstanceActivityData() {
const activityData = ref([]);
const activityDetailData = ref([]);
let allDateOfActivity = reactive(new Set());
const allDateOfActivity = ref(new Set());
const worldNameArray = ref([]);
async function getAllDateOfActivity() {
@@ -24,7 +24,7 @@ export function useInstanceActivityData() {
uniqueDates.add(formattedDate);
}
allDateOfActivity = reactive(uniqueDates);
allDateOfActivity.value = reactive(uniqueDates);
}
async function getWorldNameData() {