|
@@ -25,7 +25,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="12" class=" test-btn">
|
|
|
<el-button type="primary" round size="mini" class="pull-right" v-if="card.applicationType"
|
|
|
- @click="goToProjectDetail(card.code)">我要众测
|
|
|
+ @click="goToProjectDetail(card.code)">查看详情
|
|
|
</el-button>
|
|
|
<el-button type="primary" round size="mini" class="pull-right" v-else
|
|
|
@click="goToTaskDetail(card.projectId, card.code)">我要众测
|
|
@@ -71,13 +71,15 @@
|
|
|
goToProjectDetail(id) {
|
|
|
if (!this.isLogin) {
|
|
|
notify('warning', '请登录后访问');
|
|
|
- } else if (this.isLogin) {
|
|
|
- Http.get(Apis.USER.IS_PART.replace('{userId}', this.user.id)).then((res) => {
|
|
|
- this.$router.push({name: 'Project', params: {projectId: id}})
|
|
|
- }).catch((error) => {
|
|
|
- notify('error', error.data)
|
|
|
- })
|
|
|
}
|
|
|
+ // else if (this.isLogin) {
|
|
|
+ // Http.get(Apis.USER.IS_PART.replace('{userId}', this.user.id)).then((res) => {
|
|
|
+ // this.$router.push({name: 'Project', params: {projectId: id}})
|
|
|
+ // }).catch((error) => {
|
|
|
+ // notify('error', error.data)
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ this.$router.push({name: 'Project', params: {projectId: id}})
|
|
|
},
|
|
|
goToTaskDetail(projectId, taskId) {
|
|
|
if (!this.isLogin) {
|