We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21810c7 commit 1684a63Copy full SHA for 1684a63
src/views/topic.vue
@@ -5,7 +5,7 @@
5
:need-add="true"
6
:fix-head="true">
7
</nv-head>
8
-
+
9
<div id="page"
10
:class="{'show-menu':showMenu}"
11
v-if="topic.title">
@@ -146,7 +146,12 @@
146
},
147
upReply(item) {
148
if (!this.userInfo.userId) {
149
- this.$route.router.go('/login?redirect=' + encodeURIComponent(this.$route.path));
+ this.$router.push({
150
+ name: 'login',
151
+ params: {
152
+ redirect: encodeURIComponent(this.$route.path)
153
+ }
154
+ });
155
} else {
156
$.ajax({
157
type: 'POST',
@@ -180,4 +185,4 @@
180
185
nvTop
181
186
}
182
187
};
183
-</script>
188
+</script>
0 commit comments