Commit 85a74bdb authored by 郭铭瑶's avatar 郭铭瑶 🤘

09.27标签筛选名后跟统计数字

parent 1af05b5a
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import store from '@/store' import store from '@/store'
import { computed, onMounted, ref, watch } from 'vue' import { computed, ref, watch } from 'vue'
import { import {
useFetchOrg, useFetchOrg,
useFetchMember, useFetchMember,
...@@ -306,13 +306,18 @@ const getCommunities = async (name?: string) => { ...@@ -306,13 +306,18 @@ const getCommunities = async (name?: string) => {
.filter((item: string) => !!item) .filter((item: string) => !!item)
} }
onMounted(() => { watch(
() => store.state.auth.code,
(code) => {
if (!code) return
getOrgTags() getOrgTags()
getMemberTags() getMemberTags()
getAreas() getAreas()
getCommittees() getCommittees()
getCommunities() getCommunities()
}) },
{ immediate: true },
)
const getDetail = async (type: string, name: string) => { const getDetail = async (type: string, name: string) => {
let res = [] let res = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment