V1.2.0已发布的测试版
This commit is contained in:
@@ -35,16 +35,9 @@ export default {
|
||||
},
|
||||
mounted() {
|
||||
this.fetchProblemsList(this.listParams)
|
||||
if (this.$route.query.id) {
|
||||
this.DetailsParams.id = this.$route.query.id
|
||||
|
||||
}else if(this.problems.length > 0){
|
||||
this.DetailsParams.id = this.problems[0].id;
|
||||
}
|
||||
|
||||
|
||||
console.log(this.DetailsParams.id,"this.DetailsPara发发发麻烦你ms.id");
|
||||
|
||||
this.fetchProblemDetails(this.DetailsParams)
|
||||
|
||||
},
|
||||
methods: {
|
||||
@@ -53,11 +46,14 @@ export default {
|
||||
const res = await documentsList(params)
|
||||
if(res && res.code === 200){
|
||||
this.problems = res.rows;
|
||||
if (!this.$route.query.id) {
|
||||
this.DetailsParams.id = this.problems[0].id;
|
||||
}
|
||||
// this.DetailsParams.id = this.problems[0].id;
|
||||
// this.fetchProblemDetails(this.DetailsParams)
|
||||
|
||||
if (this.$route.query.id) {
|
||||
this.DetailsParams.id = this.$route.query.id
|
||||
|
||||
}else if(this.problems.length > 0){
|
||||
this.DetailsParams.id = this.problems[0].id;
|
||||
}
|
||||
this.fetchProblemDetails(this.DetailsParams)
|
||||
}
|
||||
this.setLoading('problemLoading', false);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user