Commit 3ca52fe8 by yuzhenWang

让首页发请求

parent d32448e3
...@@ -623,6 +623,7 @@ import { ...@@ -623,6 +623,7 @@ import {
import { ref } from 'vue' import { ref } from 'vue'
import useUserStore from '@/store/modules/user' import useUserStore from '@/store/modules/user'
import { ElMessage } from 'element-plus'
const router = useRouter() const router = useRouter()
const userStore = useUserStore() const userStore = useUserStore()
......
...@@ -9,11 +9,7 @@ ...@@ -9,11 +9,7 @@
</template> </template>
<div class="app-list"> <div class="app-list">
<AppCard <AppCard v-for="project in projects" :key="project.projectBizId" :project="project" />
v-for="project in projects"
:key="project.projectBizId"
:project="project"
/>
</div> </div>
<div v-if="!projects.length" class="empty-container"> <div v-if="!projects.length" class="empty-container">
...@@ -42,11 +38,12 @@ const projects = computed(() => { ...@@ -42,11 +38,12 @@ const projects = computed(() => {
// 监听租户变化 // 监听租户变化
watch( watch(
() => userStore.currentTenant, () => userStore.currentTenant,
() => { () => {
// 租户变化时自动刷新 // 租户变化时自动刷新
} }
) )
userStore.getInfo()
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
......
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