【问题标题】:VuePress Sidebar does not renderVuePress 侧边栏不呈现
【发布时间】:2019-09-19 00:34:31
【问题描述】:
//config.js
sidebar:[

          {
              title: 'Group 1',
              path:'/foo/',
              collapsable: false,
              sidebarDepth: 1,
              children: [
                 '/guide/', 
                '/installation/',
                '/Tips & Trcks/' ]
          },

//我的文件夹结构

问题:我的侧边栏没有显示任何内容。

【问题讨论】:

  • 你的帖子很短。您有 3 张照片和一个短语。尝试告诉我们您尝试了什么以及出了什么问题。另外,请告诉我们您的预期行为。我知道您已经知道如何写帖子,因为您有 12.2k 分。请更新!

标签: vue.js vuepress


【解决方案1】:

这是解决方案

     sidebar: [
        '/',
        {
            title: 'Guide',
            collapsable: false,
            children: [ 
            ['/guide/Frontend','Frontend'],
            ['/guide/Backend' , 'Backend' ]

        },

解释:

 ['/guide/Frontend','Frontend'],

'/guide/Frontend' 是路径,'Frontend'(您可以随意命名)是您想在侧边栏中调用它的名称,因此侧边栏标题不必在“绝对路径”中读取格式。

【讨论】:

    猜你喜欢
    • 2015-01-29
    • 2019-02-11
    • 2020-10-19
    • 2020-10-22
    • 2021-11-18
    • 1970-01-01
    • 2019-11-11
    • 2017-10-13
    • 2020-02-22
    相关资源
    最近更新 更多