@@ -39,6 +39,8 @@ registryConvert();
const authStore = useAuthStore();
onMounted(() => {
+ if (import.meta.server)
+ return;
authStore.loadLoginState();
});
@@ -121,6 +121,7 @@ watch(route, () => {
}, { immediate: true })
async function loadInfo() {
+
loading.value = true;
const id = Number(route.query.id);
data.value = {
@@ -24,6 +24,8 @@ const route = useRoute();
const router = useRouter();
async function showDetail(item: any) {
localStorage.setItem('VillageTemp', JSON.stringify(item));
setTimeout(() => {
router.push({