yujialong 2 weeks ago
parent ed7fe3827d
commit 52b5cb7625
  1. 3
      src/mixins/page/index.js
  2. 2
      src/pages/article/index.vue
  3. 2
      src/styles/lib/_reset.scss

@ -117,7 +117,8 @@ export default {
(this.site) : (this.site) :
item.siteSelection item.siteSelection
if (ids[1]) { // 文章 if (ids[1]) { // 文章
href = '/article?articleId=' + ids[1] const columnIds = ids[0].split(',')
href = `/article?articleId=${ids[1]}&id=${columnIds[columnIds.length - 1]}`
} else { // 栏目 } else { // 栏目
const columnIds = ids[0].split(',') const columnIds = ids[0].split(',')
href = '/column?id=' + columnIds[columnIds.length - 1] href = '/column?id=' + columnIds[columnIds.length - 1]

@ -49,7 +49,7 @@ export default {
data () { data () {
return { return {
id: this.$route.query.articleId, id: this.$route.query.articleId,
columnId: +this.$route.query.id, columnId: +this.$route.query.id || '',
preview: this.$route.query.preview, preview: this.$route.query.preview,
loaded: false, loaded: false,
routes: [], routes: [],

@ -36,8 +36,6 @@ input,
textarea, textarea,
p, p,
blockquote, blockquote,
th,
td,
hr, hr,
button, button,
article, article,

Loading…
Cancel
Save