Skip to content

Commit

Permalink
Update v2ex.k.vue.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kokdemo committed Sep 30, 2019
1 parent 87253e2 commit 6ecb648
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/v2ex.k.vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ var k_forum = Vue.extend({
porps: ['nodebaritems', 'data', 'url'],
data: function () {
if (route.topicID != undefined) {
var iframeUrl = route.origin + '/t/' + route.topicID;
var iframeUrl = route.origin + '/t/' + route.topicID.split("&")[0];
} else {
var iframeUrl = ''
}
Expand Down Expand Up @@ -285,6 +285,7 @@ var k_forum = Vue.extend({
open: function (url) {
this.$parent.iframeUrl = url;
var topicID = url.split('/t/')[1].split('#')[0];
console.info(topicID)
route.topicID = topicID;
var topicHref = window.location.href;
if (window.location.search.length == 0) {
Expand Down

0 comments on commit 6ecb648

Please sign in to comment.