【fix】优化代码
This commit is contained in:
@ -8,9 +8,9 @@
|
||||
<script setup>
|
||||
import { computed, nextTick, onBeforeUnmount, onMounted, ref, toRefs, unref, watch } from "vue";
|
||||
import { getTimeAfterNow } from "@/utils/utils";
|
||||
import { useMainStore } from "@/store/store";
|
||||
import { useMainStore } from "@/store/modules/useMainStore";
|
||||
import { useInterface } from "@/hooks/useInterface";
|
||||
import {handleLoginFailure} from "@/utils";
|
||||
import { handleLoginFailure } from "@/utils";
|
||||
|
||||
const emits = defineEmits(["activeListItemTimeOver", "doGroupBy"])
|
||||
|
||||
@ -54,7 +54,7 @@ const {toast} = useInterface();
|
||||
const mainStore = useMainStore()
|
||||
|
||||
function handleGoGroupBy(order) {
|
||||
if(!mainStore.user){
|
||||
if (!mainStore.user) {
|
||||
handleLoginFailure()
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user