fix(问答库): 关闭弹窗时去掉路由中的参数
This commit is contained in:
@@ -611,6 +611,7 @@
|
|||||||
:visible.sync="answerListDrawer"
|
:visible.sync="answerListDrawer"
|
||||||
size="900px"
|
size="900px"
|
||||||
custom-class="demo-drawer"
|
custom-class="demo-drawer"
|
||||||
|
:before-close="beforeClose"
|
||||||
>
|
>
|
||||||
<div class="demo-drawer-content">
|
<div class="demo-drawer-content">
|
||||||
<!-- <loading :loading="lawInfoTableLoading">数据获取中</loading>-->
|
<!-- <loading :loading="lawInfoTableLoading">数据获取中</loading>-->
|
||||||
@@ -624,7 +625,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<div slot="footer" class="demo-drawer-footer">
|
<div slot="footer" class="demo-drawer-footer">
|
||||||
<el-button class="common-button-default" size="mini" @click="answerListDrawer = false">取消</el-button>
|
<el-button class="common-button-default" size="mini" @click="close">取消</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
@@ -765,6 +766,20 @@ export default {
|
|||||||
this.toAnswer()
|
this.toAnswer()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
close () {
|
||||||
|
this.$router.push({
|
||||||
|
name: 'StandQA',
|
||||||
|
query: {}
|
||||||
|
})
|
||||||
|
this.answerListDrawer = false
|
||||||
|
},
|
||||||
|
beforeClose (done) {
|
||||||
|
this.$router.push({
|
||||||
|
name: 'StandQA',
|
||||||
|
query: {}
|
||||||
|
})
|
||||||
|
done()
|
||||||
|
},
|
||||||
toAnswer () {
|
toAnswer () {
|
||||||
if (this.$route.query && this.$route.query.id) {
|
if (this.$route.query && this.$route.query.id) {
|
||||||
this.$http._getData('/lawss/AskQuestions/askQuestionById', {
|
this.$http._getData('/lawss/AskQuestions/askQuestionById', {
|
||||||
|
|||||||
Reference in New Issue
Block a user