Skip to content

Commit 1684a63

Browse files
committed
处理: issues/59 ,改错
1 parent 21810c7 commit 1684a63

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/views/topic.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
:need-add="true"
66
:fix-head="true">
77
</nv-head>
8-
8+
99
<div id="page"
1010
:class="{'show-menu':showMenu}"
1111
v-if="topic.title">
@@ -146,7 +146,12 @@
146146
},
147147
upReply(item) {
148148
if (!this.userInfo.userId) {
149-
this.$route.router.go('/login?redirect=' + encodeURIComponent(this.$route.path));
149+
this.$router.push({
150+
name: 'login',
151+
params: {
152+
redirect: encodeURIComponent(this.$route.path)
153+
}
154+
});
150155
} else {
151156
$.ajax({
152157
type: 'POST',
@@ -180,4 +185,4 @@
180185
nvTop
181186
}
182187
};
183-
</script>
188+
</script>

0 commit comments

Comments
 (0)