提交 a4e64dec authored 作者: 王鹏飞's avatar 王鹏飞

update

上级 6c02c8b4
......@@ -35,14 +35,14 @@ function url2Json(url) {
}, {})
}
const query = url2Json(location.href)
const projectId = query.projectId || '1000'
export default {
name: 'app',
data() {
return {
projectId: query.projectId,
projectId,
currentActive: query.active || 'profile',
menus: query.projectId === '1000' ? sofiaForm : kelleyForm
menus: projectId === '1000' ? sofiaForm : kelleyForm
}
},
computed: {
......@@ -65,7 +65,7 @@ export default {
// 获取进度
getProgress() {
axios
.get('/zws/v1/enrollment/submissions?project_id=1000')
.get(`/zws/v1/enrollment/submissions?project_id=${this.projectId}`)
.then(response => {
let children = this.menus[0].children
const submitProgress = response.data.submit_progress
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论