Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新建文件的时候跳转的还是viewport是为什么呢? #8

Closed
Tyler-zct opened this issue Apr 3, 2018 · 1 comment
Closed

Comments

@Tyler-zct
Copy link

No description provided.

@linweiwei123
Copy link
Owner

linweiwei123 commented Apr 3, 2018

@dearfriendz 需要配置router,是基于express搭建的。
新增一个项目需要的步骤:

第一步:在routes/index.js 中修改
/* GET home page. */
router.get('/', function(req, res, next) {
res.render('viewport/index'); //这里改为你的路径
});
也可以增加一个,参考文件改下。

第二步骤L另外在apps/index.js 中加入你的页面,参考apps/index.js改下。

抱歉,文档不够详细,后面补齐

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants