fix: 问题修复
This commit is contained in:
parent
031cc0703c
commit
932ec63261
@ -254,7 +254,7 @@ const selectCate = async (cateId) => {
|
|||||||
|
|
||||||
function goToDetail(item) {
|
function goToDetail(item) {
|
||||||
if (!item?._id) return;
|
if (!item?._id) return;
|
||||||
uni.navigateTo({ url: `/pages/article/article-detail?id=${item._id}` });
|
uni.navigateTo({ url: `/pages/article/article-detail?id=${item._id}&corpId=${corpId.value}` });
|
||||||
}
|
}
|
||||||
|
|
||||||
onLoad(async (options) => {
|
onLoad(async (options) => {
|
||||||
|
|||||||
@ -20,7 +20,7 @@
|
|||||||
<yc-home v-else />
|
<yc-home v-else />
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { computed, ref } from "vue";
|
import { computed, ref, watch } from "vue";
|
||||||
import { storeToRefs } from "pinia";
|
import { storeToRefs } from "pinia";
|
||||||
import { onLoad, onShow } from "@dcloudio/uni-app";
|
import { onLoad, onShow } from "@dcloudio/uni-app";
|
||||||
// import useGuard from "@/hooks/useGuard";
|
// import useGuard from "@/hooks/useGuard";
|
||||||
@ -103,6 +103,13 @@ onShow(async () => {
|
|||||||
teams.value = [];
|
teams.value = [];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
watch(account, (n, o) => {
|
||||||
|
if (n && !o) {
|
||||||
|
getTeams();
|
||||||
|
} else if (!n && o) {
|
||||||
|
teams.value = [];
|
||||||
|
}
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.home-container {
|
.home-container {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user