|
@@ -347,7 +347,7 @@
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
import { doLogout, updateUISetting } from "@/api/markPage";
|
|
|
-import { watchEffect } from "vue";
|
|
|
+import { watchEffect, ref } from "vue";
|
|
|
import { store } from "@/store/store";
|
|
|
import { ModeEnum } from "@/types";
|
|
|
import MarkChangeProfile from "./MarkChangeProfile.vue";
|
|
@@ -392,24 +392,24 @@ const logout = () => {
|
|
|
doLogout();
|
|
|
};
|
|
|
|
|
|
-let changeProfileRef = $ref(null);
|
|
|
+let changeProfileRef = $ref<InstanceType<typeof MarkChangeProfile>>();
|
|
|
|
|
|
const openProfileModal = () => {
|
|
|
- // @ts-ignore
|
|
|
+ // @ts-ignore https://github.com/vuejs/vue-next/issues/4397
|
|
|
changeProfileRef?.showModal();
|
|
|
};
|
|
|
|
|
|
-let switchGroupRef = $ref(null);
|
|
|
+let switchGroupRef = $ref<InstanceType<typeof MarkSwitchGroupDialog>>();
|
|
|
|
|
|
const openSwitchGroupModal = () => {
|
|
|
- // @ts-ignore
|
|
|
+ // @ts-ignore https://github.com/vuejs/vue-next/issues/4397
|
|
|
switchGroupRef?.showModal();
|
|
|
};
|
|
|
|
|
|
-let problemRef = $ref(null);
|
|
|
+let problemRef = $ref<InstanceType<typeof MarkProblemDialog>>();
|
|
|
|
|
|
const openProblemModal = () => {
|
|
|
- // @ts-ignore
|
|
|
+ // @ts-ignore https://github.com/vuejs/vue-next/issues/4397
|
|
|
problemRef?.showModal();
|
|
|
};
|
|
|
|