Commit a3381a28 by wanglizhen

获取projectId方式更改

parent eddb5238
...@@ -10,7 +10,7 @@ import { getHomePage } from '@/api/home' ...@@ -10,7 +10,7 @@ import { getHomePage } from '@/api/home'
const router = useRouter() const router = useRouter()
const { proxy } = getCurrentInstance() const { proxy } = getCurrentInstance()
const projectId = ref('') // 项目id const projectId = ref(sessionStorage.getItem('projectId')) // 项目id
// 首页统计数据 // 首页统计数据
const topList = ref([ const topList = ref([
{ {
...@@ -88,8 +88,6 @@ const pageProjectManage = () => { ...@@ -88,8 +88,6 @@ const pageProjectManage = () => {
} }
onMounted(() => { onMounted(() => {
projectId.value = proxy.$route.query.projectId
// console.log('projectId', projectId.value)
getHomePageFunc() getHomePageFunc()
}) })
</script> </script>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论