路径跳转

This commit is contained in:
zyn
2023-04-11 13:12:49 +08:00
parent 1a137cb6fc
commit 30643a0273
@@ -2657,36 +2657,51 @@ export default {
},e => reject(e)); },e => reject(e));
}) })
}, },
jump(){
return new Promise((resolve,reject)=>{
this.$http.post('lawss/AskQuestions/jump', {
standId: this.$route.params.id,
userId : this.$store.getters.userInfo.userId,
}, {
_this: this
}, res => {
resolve(res)
},e => reject(e));
})
},
//标准问答按钮 //标准问答按钮
knowledgeSharing() { knowledgeSharing() {
this.selectAskReply() this.jump().then(res =>{
.then((res)=>{ let activeName = res.data
if( res && res.data.length === 0){ this.selectAskReply()
this.$router.push({ .then((res)=>{
name: 'MyQuestions3', if( res && res.data.length === 0){
query: { this.$router.push({
activeName: "myQue", name: 'MyQuestions3',
type: this.$route.params.pageType, query: {
id: this.$route.params.id, activeName,
dialogVisible: true type: this.$route.params.pageType,
}, id: this.$route.params.id,
}) dialogVisible: true
}else{ },
const data = res.data[0].askQuestions })
this.$router.push({ }else{
name: 'MyQuestions3', const data = res.data[0].askQuestions
query: { this.$router.push({
activeName: "myQue", name: 'MyQuestions3',
type: this.$route.params.pageType, query: {
// classification: data.classification, activeName,
id: this.$route.params.id, type: this.$route.params.pageType,
dialogVisible: false // classification: data.classification,
}, id: this.$route.params.id,
}) dialogVisible: false
} },
}).catch(e =>{ })
console.log(e) }
}) }).catch(e =>{
console.log(e)
})
})
// this.$router.push({ // this.$router.push({
// // path: '/standQA', // // path: '/standQA',