【问题标题】:Trying to delete ":view: in Telescope. Is something wrong with my code?试图删除望远镜中的“:view:”。我的代码有问题吗?
【发布时间】:2015-10-09 09:55:59
【问题描述】:

我想从 Telescope 的模板中删除“视图:”文本。

这是我的客户端/lib/config.js 文件:

module.exports = {



     banner: '/**\n' +
              ' * core-js ' + require('../package').version + '\n' +
              ' * https://github.com/zloirock/core-js\n' +
              ' * License: http://rock.mit-license.org\n' +
              ' * © ' + new Date().getFullYear() + ' Denis Pushkarev\n' +
              ' */'
              Telescope.modules.remove("top","posts_views_nav");
            };

我添加了 Telescope.modules.remove("top","posts_views_nav");。但是,这似乎不起作用。

有人可以帮忙吗?

谢谢。

【问题讨论】:

    标签: meteor telescope


    【解决方案1】:

    我不确定您在哪里添加了该行。 我通常使用 my-custom-package 来编辑 Telescope。 Telescope 用 custom_ 前缀文件覆盖原始文件。

    1. 创建 custom_modules.js
    2. 进行所需的更改。
    3. 将 custom_modules.js 添加到自定义包文件夹中的 package.js。

    让我知道这有帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-11-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-02-03
      • 1970-01-01
      相关资源
      最近更新 更多